Skip Headers
Previous
Previous
 
Next
Next

Remote Recording

If you are running the profiled application on the different host than Java Mission Control, the DTrace Recorder server needs to be started as a separate process.

To get the jar file for the DTrace Recorder, select "Start DTrace Recording" from the context menu of any of your (non local) connectors in the JVM Browser view. If you have no connectors, create a dummy connector.

You will be asked if you want to copy dtrace.jar and some other files to your workspace. Click Yes. After this you will get an error when JMC tries to establish a connection and verify it's DTrace capabilities. You can safely ignore this error.

Copy dtrace.jar from your workspace and put it on your remote host.

Start the DTrace Recorder with the JXM agent enabled:

<JAVA_HOME>/bin/java -Dcom.sun.management.jmxremote.port=4712 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -cp <JAVA_HOME>/lib/tools.jar -jar dtrace.jar

In Java Mission Control, create a connection to the DTrace Recorder server process (using the name of your remote host, and the jmx port specified above).