How to configure JConsole with ColdFusion

JConsole is a monitoring tool which we can use to gather information about the performance and resource consumption of applications(local as well as remote) running on the Java platform.

JConsole monitoring tool is shipped as part of Java Development Kit. It is located at <JDK_Home>\bin.

To configure JConsole with ColdFusion, we need to append below mentioned JVM flags to the “java.args” section in the “jvm.config” file:

  • -Dcom.sun.management.jmxremote 
  • -Dcom.sun.management.jmxremote.port=<port_numbe>
  • -Dcom.sun.management.jmxremote.authenticate=false

In ColdFusion 10, “jvm.config” file is located at <cf_install_root>\<instance_name>\bin.

In ColdFusion 9, “jvm.config” file is located at <cf_install_root>\runtime\bin [Standalone installation] or <jrun_root>\bin [Multi-Server installation].

After appending these JVM flags, save changes and restart ColdFusion server.

Now, your ColdFusion server is configured to be accessed by JConsole utility to monitor the performance and resource consumption.

Launch the JConsole tool and mention : under Remote Process to start monitoring ColdFusion server. JConsole need not to run on the box where ColdFusion server is installed.

Refer this article on how to use JConsole tool.



Advertisements

Author: Nimit Sharma

Hey I am Nimit Sharma, Working as a Lead Software Engineer. I am willing to learn new concepts and technologies. All content here are my personal views and not those of my employer.

5 thoughts on “How to configure JConsole with ColdFusion”

  1. I have noticed JMC Java Mission Control since version 5.3 (JDK 1.7.0_60 above) or 5.4 (JDK 1.8.0.11 above) quiet useful to use along with or instead of Jconsole or Jvisualvm.

    1. Carl,

      As a matter of fact, Oracle started merging JMC tool from Oracle JDK 1.7 update 40 that was released on 10th Sept 2013 and this post is bit old :). Prior to that, JMC was part of JRockit JDK which is not officially supported with ColdFusion.

      However, JMC is surely a better tool for monitoring and managing java application. It gives you more verbose information in tabluar format. It also reduces the performance overhead associated with JConsole and JVisualVM. Though I have not used it much.

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