- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 GlassFish 4 服务器开发一个基于 Web 的应用程序。今天我遇到了以下异常:
警告:GRIZZLY0173:检测到单个请求的请求参数数量(GET 加 POST)超过最大数量 ([10 000])。任何超出此限制的参数都将被忽略。要更改此限制,请在连接器上设置 maxParameterCount 属性。
这意味着当我向服务器发出发布请求时,我发送的参数超过了当前允许的最大请求参数,因此我必须增加该值。
任何人都知道如何在 GlassFish 4 的情况下进行配置。
附注我不想分解源文件并更改某些值。我想通过一些 xml 配置或通过服务器管理控制台来做到这一点。
最佳答案
在 GlassFish 4 中,您可以使用 asadmin
命令行实用程序更改设置 max-request-parameters
:
asadmin set server.network-config.protocols.protocol.http-listener-1.http.max-request-parameters=10001
或者在domain.xml中手动:
<protocols>
<protocol name="http-listener-1">
<http max-request-parameters="10001" max-connections="250"
default-virtual-server="server">
<file-cache></file-cache>
</http>
</protocol>
// more protocols...
<protocols>
如果参数 max-request-parameters
不存在,请添加该参数。确保使用正确的 http 监听器。
关于java - 增加 Glassfish maxParameterCount,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26195694/
我在 tomcat7 上收到此错误。 INFO: More than the maximum number of request parameters (GET plus POST) for a si
我正在使用 GlassFish 4 服务器开发一个基于 Web 的应用程序。今天我遇到了以下异常: 警告:GRIZZLY0173:检测到单个请求的请求参数数量(GET 加 POST)超过最大数量 ([
我是一名优秀的程序员,十分优秀!