Java Tools for HP-UX 11i: Quick Start & Migration Guide

4
Options that behave the same on both platforms
o -interval=n : set update interval to n seconds
o -notile : do not initially tile windows
o -pluginpath : specify list of directories or jar files searched for plug-ins
o -version : print version and exit
o -help : display help message
o -J<option> : pass option to the Java launcher
Options that behave differently
o none
You can also use HPjmeter to monitor the JMX activity of a JVM.
jhat – Java Heap Analysis Tool
The jhat tool parses binary heap dump files and creates a webserver that lets you browse the heap
dump information.
Options that behave the same on both platforms
o -stack true|false : control tracking of object allocation stack
o -refs true|false : control tracking of references to objects
o -port <port-number> : port for jhat’s HTTP server
o -exclude <exclude-file> : specify file that lists items to exclude from
reachable objects query
o -baseline <baseline-dump-file> : specify baseline heap dump
o -debug <int> : set debug level for the tool
o -version : report version number
o -h, -help : display help message
o -J<option> : pass option to the java launcher
Options that behave differently
o none
HPjmeter can also be used to analyze Java heap dump files, in both binary and ASCII
formats.
There are several ways to generate a heap dump file
o Use the jmap tool
o Use one of the command line options, such as -XX+HeapDumpOnCtrlBreak or -
XX:+HeapDumpOnOutOfMemoryError
o Use HPjmeter or jconsole to access the HotspotDiagnosticMXBean in the JVM
o Use the hprof agent (-agentlib:hprof)
jinfo
The jinfo tool provides configuration information for a running JVM.
Options that behave the same on both platforms
o -flag <name> : print or modify a specific flag. On HP-UX 11i, -flag can only be
used with the pid option to get information for a running Java process
o -h, -help : display help message
Options that are not available on HP-UX 11i
o -flags : print command line flags passed to JVM
o -sysprops : print Java System properties
o <executable-core> : extract configuration information from core file