Getting JConsole to work with the ColdFusion Windows Service

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.

Advertisements
This entry was posted in regular and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s