Migrating Java Applications to HP-UX

7
over each category in the cascading menu to reveal the relevant metrics for that category.
The following screen shows the available metrics for the threads/locks category:
Figure 2 HPjmeter — Threads/Locks Metrics
Collecting Garbage Collection Data for HPjmeter
The following steps summarize how to collect and view garbage collection data from your
application.
When running Java on HP-UX:
1. Add the -Xverbosegc option to the Java command line.
$ java -Xverbosegc:file=<yourApp.vgc> ....
NOTE: If you are running JDK 1.5.0.14, JDK 6.0.06, or later versions, you can start GC data
collection without using the Xverbosegc option on the command-line (zero-prep Xverbosegc).
Instead, you can toggle GC data collection on and off by sending a SIGPROF signal to the
currently running Java VM. The GC data will be written to a file named java_<pid>.vgc.
To start and stop GC data collection with zero-prep, execute:
kill PROF <pid> or kill -21 <pid>
See Collecting GC Data with Zero Preparation in the the HPjmeter User's Guide for more
information.
2. Run the application to create a Xverbosegc data file.
3. Start the HPjmeter console from a local installation on your client machine
$ java <heap_settings> -jar /opt/hpjmeter/lib/HPjmeter.jar