Server Settings > Java and JVM
Configure Java and JVM settings in ColdFusion Administrator
One of the primary strengths of ColdFusion that, under the hood, it is Java. Your ColdFusion .cfm and .cfc files are compiled to regular Java class files, and your application can natively leverage the vast collection of Java libraries available.
JVM Configuration
It is recommended to update JVM configuration directly by editing the jvm.config file rather than using the Administrator GUI, as the GUI may not accurately reflect all configuration options. When making changes, preserve your existing settings by commenting out old lines rather than deleting them, which allows for easy rollback if needed.
JVM Tuning Recommendations
The default ColdFusion JVM settings are typically not adequate for production use. Optimal configuration requires iterative testing and careful monitoring of log files to identify performance issues. For most modern installations, the G1 garbage collector is recommended as it provides the highest performance. Always conduct careful testing before implementing JVM changes in production.
Configuration Process
To configure JVM settings: locate the jvm.config file in your ColdFusion installation directory, open it in a text editor (running as administrator on Windows), add or modify the Java arguments as needed, and restart the ColdFusion service for changes to take effect.
Important Note
JVM tuning is highly specific to your application and server environment. It should be approached with care and extensive testing before any changes are implemented in your production environment. Improper JVM settings can negatively impact performance or cause stability issues.