To register an event monitor using the registry, a profiler program must create registry settings under the key:
HKEY_LOCAL_MACHINE\Software\Microsoft\Java VM\Monitors\<monitor key name>
Replace <monitor name> with the monitor that is being registered. Note the space between Java and VM.
You can set the following values the monitor key name:
default value
A REG_SZ entry containing a text description of the event monitor.
CLSID
A REG_SZ entry containing the CLSID of the class that implements the callback interface of the event monitor (profiler). Event monitors can also be registered by setting an environment variable before the Microsoft VM starts execution. A profiler program may set the MSJAVA_EVENT_MONITORS environment variable to a semicolon-separated list of CLSIDs of event monitors that should be connected to the Microsoft VM in this Win32 process. These CLSIDs are specified as ASCII strings with braces ({}) in the same format used in the registry. The Microsoft VM will load all the monitors listed in this environment variable in addition to all the event monitors listed in the registry as subkeys of the HKEY_LOCAL_MACHINE\Software\Microsoft\Java VM\Monitors registry key.
CAUTION When setting this environment variable, be careful not to overwrite an existing CLSID from another event monitoring program. If this environment variable already exists, the profiler application should append a semicolon followed by its own CLSID.