首页 > 解决方案 > 内存文件系统限制不能超过 JVM 最大堆大小

问题描述

我使用 Commandbox 启动了一个 ColdFusion 11 实例。Server Settings我想在=>下更改 CFADMIN 中的设置Settings;即 Maximum number of POST request parameters.

我不断收到错误In memory file system limit cannot be more than JVM max heap size

我怎样才能快速摆脱这个错误,因为它与我要修改的设置无关?我取消选中Enable In-Memory File System,但这没有任何改变。我设置Memory Limit for In-Memory Virtual File System1收到错误消息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.

为了设置我的参数,我最终使用了cfconfig set postParametersLimit=1000.

标签: coldfusioncommandbox

解决方案


我认为这是 Adob​​e ColdFusion 中的一个错误,因为 CommandBox 默认没有设置最大堆大小!这只是你的操作系统想要给它的任何东西。尝试在 CommandBox 中设置显式最大值。

https://commandbox.ortusbooks.com/embedded-server/configuring-your-server/jvm-args#heapsize

另外,FWIW,我不确定最大帖子大小是否适用于 CF 的 J2E 安装。它可能依赖于他们破解的 Tomcat 版本,因此您可能需要进行测试。


推荐阅读