uCosminexus Application Server, Maintenance and Migration Guide
This subsection describes how to output the class-wise statistical information.
Use the jheapprof commands to output the class-wise statistical information to the extended thread dump. Specify the Java process, where you want to output the class-wise statistical information, and the class, where you want to output the reference-related information, and then execute the jheapprof commands.
You can specify the following when executing the jheapprof command:
The execution format and the execution example of the jheapprof command and each specification method are described as follows:
The execution format and example of the jheapprof command are described below: For details about the jheapprof commands, see jheapprof (output of an extended thread dump with Hitachi class-wise statistical information) in the uCosminexus Application Server Command Reference Guide.
jheapprof [-f|-i] [-explicit|-noexplicit] [-class class-name] [-fullgc|-copygc|-nogc] [-garbage|-nogarbage] [-rootobjectinfo|-norootobjectinfo] [-rootobjectinfost size] -p process-ID |
jheapprof [-f|-i] [-explicit|-noexplicit] [-class class-name] [-fullgc|-copygc|-nogc] [-garbage|-nogarbage] [-rootobjectinfo|-norootobjectinfo] [-rootobjectinfost size] [-force] -p process-ID |
% jheapprof -p 2463 |
Force VM to output HitachiJavaHeapProfile: ? (y/n) |
send SIGQUIT to 2463: ? (y/n) |
Writing Java core to javacore2463.030806215140.txt... OK |
If the following conditions are satisfied, you can output the information of an Explicit heap to the class-wise statistical information:
Specify the -explicit option in the jheapprof command, and then execute the command to output the information of an Explicit heap to the class-wise statistical information.
For details about the Explicit Memory Management functionality, see 8. Preventing the Occurrence of Full Garbage Collection by using the Explicit Memory Management Functionality in the uCosminexus Application Server Expansion Guide.
You can select whether to execute the garbage collection before the class-wise statistical information is output. This functionality is called as pre-statistical garbage collection selection functionality. Specify any of the following options in the jheapprof command, if you want to execute the garbage collection before the class-wise statistical information is output:
For details about the pre-statistical garbage collection selection functionality, see 9.7 Pre-statistical garbage collection selection functionality. Note that you cannot execute the pre-statistical garbage collection selection functionality, when you execute the unused objects statistical functionality in the Tenured area.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.