I started a ColdFusion 11 instance using Commandbox. I wanted to alter a setting in the CFADMIN under Server Settings
=> Settings
; namely
Maximum number of POST request parameters
.
I keep getting the error In memory file system limit cannot be more than JVM max heap size
.
How can I quickly get rid of this error as it has nothing to do with the setting I want to modify?
I uncheck Enable In-Memory File System
but this changes nothing.
I set Memory Limit for In-Memory Virtual File System
to 1
and get the errore message In-Memory File System limit per Application must be numeric, less than In-Memory Virtual File System memory limit, and greater than or equal to 1.
To set my parameter I eventually used cfconfig set postParametersLimit=1000
.
I assume this is a bug in Adobe ColdFusion because CommandBox doesn't set a max heap size by default! it's just whatever your OS wants to give it. Try setting an explicit max in CommandBox.
https://commandbox.ortusbooks.com/embedded-server/configuring-your-server/jvm-args#heapsize
Also, FWIW, I'm not sure if the max post size works on a J2E install of CF. It may rely on their hacked up Tomcat version so you may want to test.