tomcat优化---大数据量提交tomcat时,tomcat无法接收导致页面无反应

tomcat优化—大数据量提交tomcat时,tomcat无法接收导致页面无反应
关于tomcat的一个优化问题:
有时候保存大数据量的数据时。tomcat不优化的话,页面会没反应。tomcat后台并不报错,仅仅是提示以下内容:
警告: More than the maximum number of request parameters (GET plus POST) for a s
ingle request ([10,000]) were detected. Any parameters beyond this limit have be
en ignored. To change this limit, set the maxParameterCount attribute on the Con
nector.

假设遇到此问题,就要进行优化一下tomcat的接收数据容量,详细改动例如以下:

将这段内容替换掉tomcat->conf–>server.xml中通常是69,70,71行左右的<Connector …/>内容。重新启动tomcat就可以 。
说明一下。maxParameterCount是起作用的内容。可依据须要自行加大,详细tomcat能接受的最大值是多少,这个还真没考究过,只是一次100M数据量的提交应该是没有问题的。

猜你喜欢

转载自blog.csdn.net/anhldd/article/details/84519723