IBM User Guide for Java V7 on Windows > Troubleshooting and support > Using diagnostic tools > Tracing Java applications and the JVM > Controlling the trace



Specifying trace options

The preferred way to control trace is through trace options that you specify by using the -Xtrace option on the launcher command line, or by using the IBM_JAVA_OPTIONS environment variable.

Some trace options have the form <name> and others are of the form <name>=<value>, where <name> is case-sensitive. Except where stated, <value> is not case-sensitive; the exceptions to this rule are file names on some platforms, class names, and method names.

If an option value contains commas, it must be enclosed in braces. For example:

methods={java/lang/*,com/ibm/*}

Note: The requirement to use braces applies only to options specified on the command line. You do not need to use braces for options specified in a properties file.

The syntax for specifying trace options depends on the launcher. Usually, it is:

java -Xtrace:<name>,<another_name>=<value> HelloWorld

To switch off all tracepoints, use this option:

java -Xtrace:none=all

If you specify other tracepoints without specifying -Xtrace:none, the tracepoints are added to the default set.

When you use the IBM_JAVA_OPTIONS environment variable, use this syntax:

set IBM_JAVA_OPTIONS=-Xtrace:<name>,<another_name>=<value>
or
export IBM_JAVA_OPTIONS=-Xtrace:<name>,<another_name>=<value>


Parent: Controlling the trace








Error 404 - Not Found

Error 404 - Not Found

The document you are looking for may have been removed or re-named. Please contact the web site owner for further assistance.