Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

7. Tuning the JVM, Step by Step

7. Tuning the JVM, Step by Step

A modern JVM (Java Virtual Machine) is a complex piece of software with the capability and flexibility to adapt to many different application families and domains. Though many applications perform well with the default settings of a JVM, some applications require additional JVM tuning to meet their performance requirements. Due to the wide variety of applications that can be run on a modern JVM, a large number of JVM attributes can be tuned for running an application. Unfortunately, a well-tuned JVM configuration used for one application may not be well suited for another application. As a result, understanding how to tune a JVM is a necessity.

Tuning a modern JVM is largely an art, but some fundamentals, when well understood and followed, can make the task much simpler. This chapter presents those fundamentals and a general step-by-step process to tune the Java HotSpot VM (also referred to as HotSpot VM hereafter). To gain the most from this chapter, you should be familiar with the information presented in Chapter 3, “JVM Overview,” in particular the “HotSpot VM Garbage Collectors” and “HotSpot VM JIT Compilers” sections.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint