| United States-English |
|
|
|
![]() |
Java™ Troubleshooting Guide for HP-UX Systems: > Chapter 1 Diagnostic and Monitoring Tools and Options-Xverbosegc |
|
The -Xverbosegc option prints out detailed information about the Java heap before and after garbage collection. The syntax is: -Xverbosegc [:help] | [0 | 1] [:file = [stdout | stderr | <filename>]] The “:help” option prints a description of the verbosegc output format. The “0 | 1” option controls the printing of help information. Specifying value “0” causes the heap information to be printed after every Old Generation GC or Full GC. Specifying value “1” (the default) causes the heap information to be printed after every GC. The “file = [stdout | stderr | <filename>]” option specifies the output file. The default is stderr, which directs the output to the standard error stream. Alternative choices for the output file are stdout and a user-specified filename. -Xverbosegc sends log information to stderr by default. It is preferable to send the output to a specific logfile instead because runtime errors may also send output to stderr. The following command line sends -Xverbosegc output to a text file named yourApp_pid<pid>.vgc:
At every garbage collection 20 fields are printed as follows:
The following table contains brief descriptions of these 20 fields: Table 1-15 Garbage Collection Field Information
For more details about these fields, use the :help option or refer to the Java Programmers Guide at: http://docs.hp.com/en/JAVAPROGUIDE/index.html To better understand how garbage collection works in the Java VM, see the following webpage: http://java.sun.com/javase/technologies/hotspot/gc/index.jsp Additionally, HP recommends using the HPjmeter tool, which can graphically display the -Xverbosegc data. For more information about obtaining -Xverbosegc data for Java applications started without the -Xverbosegc option, see “Allocation Site Statistics and Zero Preparation Xverbosegc”. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||