Connecting JConsole to a Java process: the missing -D option
Published by peter October 17th, 2007 in java, jconsole.Once in a while I tend to use JConsole for basic profiling of a Java process.
Somehow I always forget which flag I need to set to enable remote connections to a process. And yes, I know the option is hidden somewhere on page 3 of the documentation…
You need to add the following in the VM arguments:
-Dcom.sun.management.jmxremote
After which you can just connect JConcole to the pid of the process you’re interested in.




















0 Responses to “Connecting JConsole to a Java process: the missing -D option”
Please Wait
Leave a Reply