•Heap in use after the GC event
•Current maximum heap size
•Duration of the GC event
To capture basic
$ java ...
More data are available if you start the JVM with the
$ java ...
Use these additional options to obtain more data on GC activity in the eden space, the survivor space, the old generation, and the permanent generation.
NOTE:
UsingSome JVMs improperly mix the output from these two options, resulting in a data file that cannot be parsed properly by HPjmeter. We recommend using only one of the two options.
To see the availability in HPjmeter of metrics derived from
Naming GC Data Files
The following table shows the file name formats used by default when naming files containing garbage collection data. You may want to follow this convention when naming GC data files, but it is not required.
Table
Option | File Name Suffix |
|
|
.vgc | |
|
|
.vgc | |
|
|
-Xverbosegc and -Xloggc Options and Their Corresponding Metrics
The following metrics or features are available depending on the option used to collect data.
Table
Metric | ||
|
|
|
Yes | No | |
|
|
|
Yes | Yes | |
|
|
|
Yes | Yes | |
|
|
|
Yes | Yes | |
|
|
|
Yes | Yes | |
|
|
|
Cumulative GC duration* | Yes | Yes |
|
|
|
Heap usage before GC* | Yes | Yes |
|
|
|
Heap capacity* | Yes | Yes |
|
|
|
Reclaimed bytes* | Yes | Yes |
|
|
|
Promoted bytes* | Yes | No |
|
|
|
Percentage of Time in GC* | Yes | Yes |
|
|
|