How to configure JVisualVM with ColdFusion


Java VisualVM is a powerful tool which is used to monitor and improve the application performance. It allows users to generate and analyze heap dumps, track down memory leaks, perform and monitor garbage collection. It also provides functionality offered by jmap, jinfo, jstat and jstack. If it is required, JConsole can also be integrated with JVisualVM which I discussed in my previous blog.

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

We can also utilize this powerful tool with ColdFusion to troubleshoot memory leaks and performance issues.

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

  • -Dcom.sun.management.jmxremote 
  • -Dcom.sun.management.jmxremote.port=<port_number>
  • -Dcom.sun.management.jmxremote.authenticate=false
  • -Dcom.sun.management.jmxremote.ssl=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, and now you can launch JVisualVM utility to monitor the performance and resource consumption.

JVisualVM need not to be run on the same box where ColdFusion server is installed.



Please leave your comments and queries about this post in the comment sections in order for me to improve my writing skills and to showcase more useful posts.

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.