Chapter 7Tuning a JRuby Application

Tuning for peak performance is a bit like conducting a science experiment. You develop a hypothesis, test your hypothesis, and then change variables to test their effect on the system. The trick is knowing what variables to change and when to change them.

In the coming pages, you’ll learn about some variables you can configure and knobs you can turn in the JVM to improve performance. You’ll learn what heap memory is and how you can adjust it. You’ll also learn about other types of memory like metaspace and direct memory. In every case, you’ll learn how to detect early warning signs of problems and make corrections before they cause trouble.

After memory, you’ll learn about garbage collection (GC), which ...

Get Deploying with JRuby 9k now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.