Table A-2 HPjmeter Features Available by JVM Version (continued)

HPjmeter Feature

 

JVM

 

Command Line Option or Action

 

 

 

Java 1.4x

Java 5.x

Java 6.x

 

 

 

 

 

 

 

Start and stop verbose GC data

X (5.0.14)

X (6.0.02)

kill -PROF pid or kill -21

collection with zero preparation

 

 

 

pid

Obtain allocation site statistics

X (5.0.14)

X (6.0.02)

-Xverbosegc and

and -Xverbosegc data

 

 

 

-XX:+PrintAllocStatistics

together

 

 

 

 

 

 

 

 

 

* This HPjmeter switch is optional when running Java 6.0.03 or later.

Default Location of Xverbosegc and Allocation Site Statistics Data Files

Table A-3 GC Data File and Allocation Site Statistics Locations By Command Option Selection

JVM Option(s) Used

Action Used

Resulting Data Location

 

 

 

-Xverbosegc and

No special action

Standard out

-XX:+PrintAllocStatistics

 

 

 

-Xverbosegc:myfile.vgc and

No special action

myfile.vgc

-XX:+PrintAllocStatistics

 

 

 

-XX:+PrintAllocStatistics

No special action

Standard out

No special option

kill -21 pid

java_pid.vgc

-XX:+PrintAllocStatistics

kill -21 pid

java_pid.vgc

-Xverbosegc and

kill -21

pid

Standard out

-XX:+PrintAllocStatistics

 

 

 

-Xverbosegc:myfile.vgc and

kill -21

pid

myfile.vgc

-XX:+PrintAllocStatistics

 

 

 

-Xverbosegc

kill -21

pid

Standard out

-Xverbosegc:myfile.vgc

kill -21

pid

myfile.vgc

 

 

 

 

198 Quick References