Tomcat optimization --- when a large amount of data is submitted to tomcat, tomcat cannot receive it, resulting in no response to the page. --- tomcat
An optimization question about tomcat:
Sometimes, if tomcat is not optimized when you save a large amount of data, the page will not respond, and the tomcat background will not report an error, just prompting the following content:
Warning 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.
If you encounter this problem, you need to optimize the tomcat receiving data capacity. The specific modification is as follows:
<Connector connectionTimeout = "20000" port = "8080" protocol = "HTTP/1.1" redirectPort = "8443"
MaxThreads = "150" compression = "on" executor = "tomcatThreadPool" URIEncoding = "UTF-8"
CompressableMimeType = "text/html, text/xml, text/javascript, text/css, text/plain"
NoCompressionUserAgents = "gozilla, traviata" compressionMinSize = "50" maxParameterCount = "1000000"/>
Replace the content in tomcat-> conf --> server. xml with the content of <Connector.../>, which is about 70 and 71, and restart tomcat. Description: maxParameterCount is the content that works. You can increase the value as needed. The maximum value that can be accepted by tomcat is not worth mentioning, however, it is no problem to submit a mb data volume at a time.