Java Tools for HP-UX 11i: Quick Start & Migration Guide
5
o <server-id@remote-host> : use Servicability Agent to access remote Java
processes
• First available with 6.0.03 on HP-UX 11i
jmap
The jmap tool creates a Java memory map (heap dump) for a running JVM or extracts the information
from a core file.
• Options that behave the same on both platforms
o -dump:[options] <pid> : dump heap to binary hprof file
o -histo[:line] <pid> : print heap histogram
o -h, -help : display help message
o -J<option> : pass option to the Java launcher
• Options that are not available on HP-UX 11i
o <no option> : print shared object mappings
o -finalizerinfo : print info about objects on finalizer queue
o -heap : print heap summary
o -permstat : print classloader-wise perm gen statistics
o -F : force dump or histogram
o <executable core> : produce memory map from core file
o <server-id@remote-host> : use Servicability Agent to access remote Java
processes
• First available with 6.0.03 on HP-UX 11i
• You can analyze the heap dump file using HPjmeter or jhat.
jps
The jps tools provides process status for Java processes.
• Options that behave the same on both platforms
o -q : only list local JVM identifiers
o -m : output the arguments passed to the main method
o -l : output full package names or full path to the jar file
o -v : output arguments passed to the JVM
o -V : output arguments passed to the JVM through the flags file
o -h, -help : display help message
o -J<option> : pass option to the Java launcher
• Options that behave differently
o none
jrunscript
jrunsscript is a shell for running scripts using the JVM.
• Options that behave the same on both platforms
o -classpath, -cp
o -D<name>=<value>
o -J<flag>
o -l <language> : specify the scripting language
o -e <script> : evaluate the given script
o -encoding <encoding> : specify character encoding for script files
o -f <script-file> : evaluate the given script file