1.8GB Heap Limit in ColdFusion MX
By Pete Freitag
Macromedia's Recent Technote: Maximum JVM heap size greater than 1.8GB will prevent ColdFusion MX from starting points out the limitations of a the JVM on a 32 bit architecture.
Wondering where the number 1.8GB comes from? Moazam Raja's recent blog entry (link no longer works: http://www.unixville.com/~moazam/categories/jvmInternals/) explains. 32 bit processes can only address 4GB of memory, windows reserves 2GB for the kernel. So where's the other .2 GB? It is allocated to the the JVM's
permanent generation (this stores meta data for the JVM). Many people increase the size of the permanent generation (for CFM or JSP apps) using the jvm startup option
-XX:MaxPermSize. If you increase the perm generation (and you may want to) keep in mind your Max heap size will be less than 1.8GB.
Of course if you have these problems you should consider upgrading to a 64 bit architecture which have much larger limits.
1.8GB Heap Limit in ColdFusion MX was first published on June 08, 2004.
If you like reading about jvm, heap, or cf then you might also like:
- ColdFusion Memory Usage Stats
- Getting Size of Heap and Non Heap Memory in CFML
- Server Memory Flash Remoting Tool
- ColdFusion Garbage Collection
The FuseGuard Web Application Firewall for ColdFusion & CFML is a high performance, customizable engine that blocks various attacks against your ColdFusion applications.