Related Topics


Set Java and JVM preferences

Server Settings > Java and JVM

 

Note: This page does not apply when deploying ColdFusion on a J2EE server.

 

The following table describes the Java and JVM settings. Click Submit Changes to save your changes.

 

Option

Description

Note

Java Virtual Machine Path

The absolute filepath to the location of the Java virtual machine (JVM) root directory. Default is cf_root/runtime/jre.

A JVM is installed in the ColdFusion directory structure.

Minimum JVM Heap Size (MB)

The JVM initial heap size, in megabytes.

If you specify a value, Adobe recommends at least 32 MB.

Maximum JVM Heap Size (MB)

The JVM maximum heap size, in megabytes.

Adobe recommends at least 128 MB.

ColdFusion Class Path

The filepaths to the directories that contain the Java classes used by ColdFusion. Use a comma-delimited list for multiple entries; for example, C:\foo,d:bar.

 

JVM Arguments

The arguments to the JVM. Use a space to separate multiple entries; for example, -Xint -Xincgc.

 

 

Note: You must restart ColdFusion after making changes.

 

When you update the Java and JVM Settings page, ColdFusion writes the changes to jvm.config, which is located in cf_root\runtime\bin. Before ColdFusion saves your changes, it saves a copy of the current jvm.config file as jvm.bak. If your changes prevent ColdFusion from restarting, use jvm.bak to restore your system. For example, rename jvm.config to jvm.config_BAD, and then rename jvm.bak to jvm.config.

 

ColdFusion filters out default settings for the jvm.args attribute from the jvm.config file, including the following:

aArgs[i] contains '-Xmx'

aArgs[i] contains '-Xms'

aArgs[i] contains "-Djava.security.manager"

aArgs[i] contains "-Djava.security.policy"

aArgs[i] contains "-Djava.security.auth.policy"

aArgs[i] contains '-Djava.awt.graphicsenv'

aArgs[i] contains '-Djava.awt.headless'

aArgs[i] contains '-Dcoldfusion.classPath'

aArgs[i] contains '-Dcoldfusion.rootDir'

aArgs[i] contains '-Dcoldfusion.libPath'

aArgs[i] contains '{application.home}/lib/webchartsJava2D.jar'

 

To use Server Monitor or Multiserver Monitor on a J2EE deployment of ColdFusion on Oracle 10g, in JVM Arguments set

-Doc4j.jmx.security.proxy.off=true

 

Related topics