我使用 Commandbox 启动了 ColdFusion 11 实例。我想更改 CFADMIN 中
Server Settings
=> 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 System
设置为 1
并收到错误消息 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
。
我认为这是 Adobe ColdFusion 中的一个错误,因为 CommandBox 默认情况下没有设置最大堆大小!这只是您的操作系统想要提供的任何内容。尝试在 CommandBox 中设置明确的最大值。
https://commandbox.ortusbooks.com/embedded-server/configuring-your-server/jvm-args#heapsize
另外,FWIW,我不确定最大帖子大小是否适用于 CF 的 J2E 安装。它可能依赖于他们破解的 Tomcat 版本,因此您可能需要测试。
从你自己的问题来看[不清楚这是解决方案]
安装 cfconfig [https://cfconfig.ortusbooks.com/using-the-cli/installation]。
然后
cfconfig set postParametersLimit=1000
或者您需要的任何号码。
来自
https://cfconfig.ortusbooks.com/the-basics/config-items
// Maximum number of parameters in a POST request sent to the server.
name='postParametersLimit' type='numeric'
// Limits the amount of data in MB that can be posted to the server in a single request.
name='postSizeLimit' type='numeric'