Enabling the DTrace hotspot provider after the JVM starts

While debugging a JVM performance issue a while back, I encountered the following error when I enabled the DTrace hotspot provider:

$ jinfo -flag +ExtendedDTraceProbes `pgrep java`
590: Unable to open door: target process not responding or HotSpot VM not loaded

After a bit of debugging, I figured out that the jinfo command needs to be run by the user the JVM runs as. Hopefully this will help others who encounter this annoying problem.

One Comment

Istvan Devai  on June 16th, 2009

Thank you! This helped me too, when trying to run jprof with a different user.

Leave a Comment