Skip navigation.

Tuning the JRockit JVM

  Previous Next vertical dots separating previous/next from contents/index/pdf Contents Index View as PDF   Get Adobe Reader

Basic Tuning Tips and Techniques

When you install BEA JRockit JVM, it includes a host of default start-up options that ensure a satisfactory out-of-the-box experience; however, sometimes, these options might not provide your application with the optimal performance. Therefore, BEA JRockit JVM comes with numerous alternative options and algorithms to suit different applications. This section describes some of these options and some basic tuning techniques you can use at startup. You find information on the following subjects:

 


Determine What You Want to Tune For

Before you start BEA JRockit JVM, you need to determine these two factors:

Once you've answered these questions, use the information provided below to tune BEA JRockit JVM to achieve those goals.

 


Set the Heap Size

Generally, you want to set the maximum heap size as high as possible, but not so high that it causes page faults for the application or for some other application on the same computer. Heap sizing is accomplished by using the -Xms (minimum heap size) and -Xmx (maximum heap size) options. For details on these options and guidelines for sizing the heap, please refer to Setting the Heap Size.

 


Tune the JVM

As mentioned above, you need to consider how you want JRockit to perform: for the highest possible responsiveness or the highest possible performance? This section describes how to tune for either type of performance.

Tuning for High Responsiveness

If you want the highest responsiveness from your application and guarantee minimal pause times, do the following:

Tuning for High Performance

If you want the highest possible performance BEA JRockit can provide, you will want to optimize for application thoughput. Set these tuning options at startup:

Analyze the Performance by Using the JRA

The JRockit Runtime Analyzer (JRA) is a great way to look at the performance of JRockit. The JRA records what happens in your system in runtime and then saves the findings in a file that can be analyzed through a separate JRA tool. The recording contains information about, for example, memory usage, Java heap content, and hot methods. For information on how to use the JRA, see:

Using the JRockit Runtime Analyzer

 

Back to Top Previous Next