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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access