Maximum JVM heap size greater than 1.8GB will prevent ColdFusion MX from starting
Issue
If a maximum heap size of 1.8GB or greater is entered in the Macromedia ColdFusion MX Administrator's Java/JVM Settings page and the change is submitted, you will receive a message stating the server must be restarted in order for the change to take effect. The attempt to restart the server will fail and the following message will be displayed:
Windows:
Windows could not start the ColdFusion MX Application Server on Local Computer. For more information, review the System Event Log. If this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code 2.
Unix:
There has been an error starting ColdFusion MX, please check the logs.
The following error is logged (Windows:cf_root\runtime\logs\default-out.log; Unix:cf_root/cfserver.log)
Error occurred during initialization of VM Could not reserve enough space for object heap
On 32-bit processor machines, the largest contiguous memory address space the operating system can allocate to a process is 1.8GB. Because of this, the maximum heap size can only be set up to 1.8GB. On 64-bit processor machines, the 1.8 GB limit does not apply, as 64-bit processor machines have a larger memory address space.
Solution
To correct this issue, the jvm.config file must be modified:
- Open the cf_root/runtime/bin/jvm.config file in a text editor.
- Locate the section labeled "# Arguments to VM".
- Modify the
-Xmxvariable to set a maximum heap size less than 1.8GB.
For example:-Xmx1024m - Save the file.
- Restart ColdFusion.
Additional Information
- ColdFusion MX 6.1 J2EE on JRun: Error when starting CFMX instances (19094)
- Invalid minimum JVM heap size will prevent ColdFusion MX from starting (18846)
This content requires Flash
To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.
Download the free Flash Player now!
