IBM User Guide for Java V7 on Windows > Troubleshooting and support > Using diagnostic tools > Using the Reliability, Availability, and Serviceability Interface
Preparing to use JVMRI
Trace and dump functions in the JVMRI require the JVM trace and dump libraries to be loaded. These libraries will be loaded by default, but JVMRI will fail with a warning message if you specify -Xtrace:none or -Xdump:none.
See Command-line options for more information.
- Writing an agent
This piece of code demonstrates how to write a very simple JVMRI agent.- Registering a trace listener
Before you start using the trace listener, you must set the -Xtrace option with the relevant external=tp_spec information. This action tells the object which tracepoints to listen for.- Changing trace options
This example uses the TraceSet() function to change the JVM trace setting. It makes the assumption that the options string that is specified with the -Xrun option and passed to JVM_Onload() is a trace setting.- Starting the agent
To start the agent when the JVM starts up, use the -Xrun option. For example if your agent is called jvmri, specify -Xrunjvmri: <options> on the command-line.- Building the agent
You must set some configuration options before you can build a JVMRI agent.- Agent design
The agent must reference the header files jni.h and jvmri.h, which are shipped with the SDK and are in the sdk\include subdirectory.
Parent: Using the Reliability, Availability, and Serviceability Interface
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.