The MJP profiler agent can be invoked by specifying the -Xrunmjp option of the JVM in the either the _JAVA_OPTIONS or IBM_JAVA_OPTIONS environment varables. The first is recognized by Sun's JVM and the second by IBM's. For example:
Example 3.3. Invoking the profiler agent from the environment
bash$ export _JAVA_OPTIONS="-Xrunmjp -Djava.compiler=NONE" bash$ mjp
All of the options available on the command line are also available in the environment variable. See the section called “Specifying -Xrunmjp on the command line”.