码迷,mamicode.com
首页 > 其他好文 > 详细

tomcat中间件提交表单数据量过大警告处理方案

时间:2015-07-16 22:36:38      阅读:199      评论:0      收藏:0      [点我收藏+]

标签:instead   maximum number   中间件   000])   more than the maximum number of request parameters (get plus post) for a single request ([10   

昨天系统出现了一个比较奇怪的BUG,表单提交后,数据没有全部执行。

查看tomcat日志发现有以下警告:

18:52:23,058  WARN HttpMethodBase:682 - Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.

18:52:31,290  WARN HttpMethodBase:682 - Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.

18:52:36,233  WARN HttpMethodBase:682 - Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.

Jul 15, 2015 6:53:10 PM org.apache.tomcat.util.http.Parameters processParameters

INFO: More than the maximum number of request parameters (GET plus POST) for a single request ([10,000]) were detected. Any parameters beyond this limit have been ignored. To change this limit, set the maxParameterCount attribute on the Connector.

 Note: further occurrences of this error will be logged at DEBUG level.


查询相关资料后,发现是因为tomcat有提交参数的限制。

修改tomcat  conf/server.xml文件,添加:

<Connector executor="tomcatThreadPool"

port="9080"

protocol="HTTP/1.1"

maxParameterCount="-1"

connectionTimeout="20000"

URIEncoding="UTF-8" />


maxParameterCount="-1" 表示无限制

tomcat中间件提交表单数据量过大警告处理方案

标签:instead   maximum number   中间件   000])   more than the maximum number of request parameters (get plus post) for a single request ([10   

原文地址:http://pinmei.blog.51cto.com/7012784/1675344

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!