Approaches to Analyzing Performance Data
The metrics you choose to view depend on your application domain, your code, the demands for the application, and the operating environment. Look at all of the available ones, and analyze at least a few of the topmost entries.
Whenever possible, the console visualizers present all metrics sorted in decreasing order of resources used. This places the largest resource users at the top of the screen. Evaluate them knowing your application and its characteristics. Use your intuition. If you find anything that you cannot explain, take the time to investigate and find the cause. A high level of resource consumption may be legitimate, but it can also be an indication of a performance bottleneck.
Looking at the Data from the Bottom Up
One approach to performance analysis is the
If you find a method, or a few methods that consume much time, they can become a target for your performance tuning. Similarly, if a method is called excessively many times, check to see if you can reduce the number of calls.
This will often require investigating the invocation context for the method in question. Mark the method , and find it later in the corresponding call graph. (See Using Call Graph Trees (page 75)).
Looking at the Data from the Top Down
An alternative,
Looking for Inefficiencies in Memory Usage
Large applications put a lot of stress on all components of the computing system. One strategy for understanding the behavior of your application is to look at how well the application is working within the boundaries set for heap size and the selected garbage collection type in use by the JVM. Adjusting heap size and garbage collection type can improve memory usage and work efficiency when adjusted to the demands of a particular application. For a view of memory usage and object metrics, see Profile Memory and/or Heap Activity (page 144). See Analyzing Garbage Collection Data (page 80) to obtain a detailed view of the impact of GC activity on the system.
Operating system performance,
Considerations in Interpreting the Data
What information can be gleaned from various metrics depends on how the values are calculated. Use this section to understand the meaning of the performance measures used by HPjmeter.
68 Profiling Applications