Tomcat optimization --- when a large amount of data is submitted to tomcat, tomcat cannot receive it, resulting in no response to the page. --- tomcat

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.