HP-UX Programmer's Guide for Java 2

Table Of Contents
foreground task until completed, regardless of how long the compilation takes. This
flag is provided for users who desire more deterministic behavior of method compilation
for purposes such as benchmarking.
-Xbootclasspath
Specify a semicolon-separated list of directories, JAR archives, and ZIP archives to
search for boot class files. These will be used in place of the default boot class files in
the jre/lib/rt.jar and jre/lib/i18n.jar archives normally used by the Java™
2 software.
-XdoCloseWithReadPending
The java command-line option -XdoCloseWithReadPending allows one thread to
close() a socket when there is an outstanding read pending on that same socket from
another thread.
For more information on when and how to use this option, see Closing a socket when
accept or read is pending (PA-RISC).
-Xeprof
The -Xeprof option generates profile data for HPjmeter. The -Xeprof option controls
profiling of Java™ applications running on JRE for HP-UX for the Java™ 2 Platform
and collects method clock and CPU times, method call count, and call graph.
NOTE: Zero preparation profiling is a beta feature of the HP JDK/JRE 5.0.03. It is
started from the command line by sending a signal to the JVM to start eprof. Engaging
zero preparation profiling may have a short term impact on application performance
as the JVM adjusts to the demands of performing dynamic measurements.
To profile your application, use the following command:
java -Xeprof:<options> ApplicationClassName
To profile your applet, use:
appletviewer -J-Xeprof:<options> URL
where <options> is a list of <key>[=<value>] arguments separated by commas.
We have found the following options useful in most cases:
For CPU time metrics with minimal intrusion:
-Xeprof
Exact call count information and object creation profiling:
-Xeprof:inlining=disable
To see the complete list of available options, use
java-Xeprof:help
16 HotSpot Technology Tools and Commands