| United States-English |
|
|
|
![]() |
HPjmeter: User's Guide > Chapter 6 Analyzing Garbage Collection DataBasic Garbage Collection Concepts |
|
A basic principle behind the design of the garbage collector is that objects tend to be either short-lived or else persist for the lifetime of an application run. By separating persistent objects from short-lived objects and moving them to designated spaces, the garbage collector can free memory for use by the application (improving efficiency of memory use), and avoid examining every object each time a collection is done (reduce garbage collection overhead). Through a system of identification and classification, an object ages each time it survives a garbage collection event. After surviving a certain number of garbage collection events, the object is considered old — at which point, it is moved from the young to the old area of the heap. A scavenge is a garbage collection event where only short-lived, unused objects are collected from the young heap area. Typically, scavenges are significantly faster than a full garbage collection, which involves examining all objects in the entire heap. HPjmeter reports numerous types of garbage collection. You may see references in HPjmeter to GC types in data summaries or visualizers, so it helps to become familiar with them. Table 6-5 Garbage Collection Types Recognized by HPjmeter
See also Data Collection with -Xverbosegc To view the summary presentation of GC data, double-click on the data representation in the main panel. A window will open to display the data. The following image shows a summary of .vgc data collected using the -verbosegc option and displayed under the Summary tab. Important aspects of the summary data are defined below the image.
To view the system detail for GC data, double-click on the data representation in the main panel. A window will open to display the data. Select the System Details tab. The following image shows system details collected using the -verbosegc option and displayed under the System Details tab. The data on this tab is a summary of operating system attributes and the JVM options in effect at the time the data collection began. It can be useful to refer to this information when determining adjustments to make in the size of the heap and/or the memory spaces. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||