HP (Hewlett-Packard) 5992-1918 Manuale Utente

Pagina di 78
1.7.1.2 Using HPjmeter to Analyze Garbage Collection Data
The following steps summarize how to use HPjmeter to save and view garbage collection
information from your applications:
1.
Change the command line of your Java application to use -Xverbosegc or -Xloggc to
capture garbage collection data.
2.
Run the application to create a data file.
3.
Start the console from a local installation on your client workstation.
4.
Click File—>Open File to browse for and open the data file.
5.
A GC viewer window opens and displays a set of tabs containing metric data. Following is
an example garbage collection analysis screen:
Figure 1-7 HPjmeter - Garbage Collection Analysis
1.7.2 Dynamic Data Analysis
1.7.2.1 Using HPjmeter to Monitor Applications
The following steps show how to start the monitoring agent when launching the HPjmeter
console. For most Java installations, linkage to the appropriate libraries is completed automatically
as part of the installation process, and, therefore, the first step is not needed. Begin with the
second step if you have a standard installation of the Java Runtime Environment.
1.
Set the SHLIB_PATH environment variable to include the location of the HPjmeter agent
library as appropriate for 32 or 64-bit Java VM.
Following are examples that show how to set this variable in both the csh and the ksh for
the different libraries.
To select the PA-RISC 32-bit library:
(csh) setenv SHLIB_PATH /opt/hpjmeter/lib/PA_RISC2.0
(ksh) export SHLIB_PATH=/opt/hpjmeter/lib/PA_RISC2.0       
To select the PA-RISC 64-bit library:
(csh) setenv SHLIB_PATH /opt/hpjmeter/lib/PA_RISC2.0W
(ksh) export SHLIB_PATH=/opt/hpjmeter/lib/PA_RISC2.0W      
To select the Integrity 32-bit library:
28
Diagnostic and Monitoring Tools and Options