You’ll need to add these parameters to the CF JVM startup parameters – you can do this through the CF Admin -> Java & JVM section:
-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9500 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
These should all appear on the same line with spaces in between them. Use any free port.
You can find out what ports are free by running
netstat -an | more from the command line.
Once you have restarted ColdFusion, then use go to the JDK bin directory and run
jconsole localhost:9500 and you’re sucking diesel.
Note that caveat that these settings will make your server more vulnerable so be sure to remove them once you are done monitoring.
Thanks to Dan’s Blog for this one.