Navigation: Installation > Configure Application > Configuring JVM |
![]() ![]() ![]() |
The default installation of Coldfusion comes with Java Virtual Machine (JVM) settings that are "broad" enough to handle the widest possible installations. However, it is important that you take note of the settings of your JVM and make changes that fit your application and hardware. The file listed below is an example of JVM settings that make sense for a typcial CHRID installation.
java.args=-server -DJINTEGRA_NATIVE_MODE -DJINTEGRA_PREFETCH_ENUMS -Xms512m -Xmx640m -Dsun.io.useCanonCaches=false -XX:MaxPermSize=128m -XX:PermSize=64m -XX:+UseConcMarkSweepGC -XX:NewSize=48m -Dcoldfusion.rootDir={application.home}/../ -Dcoldfusion.libPath={application.home}/../lib -Dcoldfusion.classPath={application.home}/../../classes,{application.home}/../lib/updates,{application.home}/../lib/,{application.home}/../gateway/lib/,{application.home}/../wwwroot/WEB-INF/cfform/jars
To use these settings open the <colfusion root>\runtime\bin\ directory and find the file called "jvm.config". Make a backup of this file immediately. If your CF server refuses to start after you change the JVM revert back to ther original file.
Find the section that starts with java.args and make the changes above. Note - if you have added class paths or other items to the JVM arguments you will have to manually edit the argument string to get it right.
Start and stop the CF server for your changes to take effect.
For more information on configuring a JVM to work with Coldfusion see Java Guru Robi Sen's excellent blog series on the subject.