| United States-English |
|
|
|
![]() |
HPjmeter Version 3.1 User's Guide > Chapter 8 Using Visualizer Functions Using Specialized Garbage Collection Displays |
|
GC data displays are available immediately on opening a .vgc file that was generated by running your application with -Xverbosegc or -Xloggc options. This data is presented in the following visualizers: See also: For an explanation of Java memory terminology, see the Sun Developer Network publication Memory Management in the Java HotSpot™ Virtual Machine (.pdf) This visualizer displays the sites (methods) in the JDK and user Java code where objects have been created. The display includes the number of objects created at each site (Invoke Count), the average size of each object, and the amount of memory occupied by the objects. This metric is useful when you choose to decrease heap pressure by modifying the application code.
Allocation sites can originate from interpreted as well as compiled Java code. When specifying –XX:+PrintAllocStatistics, only allocations from compiled code are reported. However, because the Java Virtual Machine detects and compiles the most active Java methods as early as possible, the most active allocation sites (the sites most likely to cause GC performance problems) are reported. The default sort on this table is determined by % Allocated, meaning the percent of memory allocated to the objects generated by the compiled portion of the running Java application. The values in this column are displayed in descending order, from greatest area of memory use to the least. Making code changes first in the area where memory use is greatest can have more significant impact on the heap.
This visualizer shows heap usage in the eden space and in the old, survivor, and permanent generations after each garbage collection. When viewed with consideration of the type of each event, this graph provides a general picture of the heap resources minimally required by an application. Related Topics
This visualizer shows the amount of stop-the-world time spent for each garbage collection event. A well-tuned application shows a relatively large number of short scavenges with less frequent, but more expensive, full garbage collections. This graph is also useful for exposing the cost of explicit System.gc() method calls within an application, which often result in expensive and unneeded garbage collection overhead. Related Topics
This visualizer shows the cumulative amount of storage for new objects requested by the application over time, which can indicate the overall progress of the application. Because the rate at which an application creates new objects is often an indicator of its performance, changes in the slope of this curve may indicate opportunities for tuning garbage collection. To see a more dramatic presentation of incremental changes in object creation, see the Creation Rate visualizer. Note that storage recovered by the garbage collector for unused objects is not deducted from the cumulative amount. This panel shows the incremental object creation rate for the application as observed at each garbage collection event. The increment at each data point is the amount of elapsed time since the previous GC event. The rate of object creation can be a good measure of your application's overall performance. By correlating GC events with changes in the object creation rate, you can discover opportunities for improving this performance through heap parameter tuning. This visualizer is supplied to help you to experiment with your own combinations of data gathered by -Xverbosegc or -Xloggc that you might find useful. Select variables for the X and Y axes from the pull-down lists. HPjmeter plots the X-Y relationships for your captured data file. For a partial list of available metrics, see –Xverbosegc and –Xloggc Options and Their Corresponding Metrics. For some user-defined selections, it is possible that the data capture obtained the GC type without being able to ascertain the numerical value of the data point. Data points with unknown numerical values are shown in gray near zero (0) on the X or Y axis of a graph. To determine the GC type of a data point, check the shape in the legend given below the graph. Related Topics
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||