Tomcat middleware submits form data too large warning processing scheme

Source: Internet
Author: User

Yesterday the system appeared a strange bug, after the form was submitted, the data is not fully executed.

Viewing the Tomcat log found the following warning:

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 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 ([up]) were detected. Any parameters beyond this limit has been ignored. To change this limit, set the Maxparametercount attribute on the Connector.

Note:further occurrences of this error is logged at the DEBUG level.


After querying the relevant information, it was found that Tomcat had the limitation of the submission parameters.

Modify the Tomcat Conf/server.xml file to add:

<connector executor= "Tomcatthreadpool"

Port= "9080"

Protocol= "http/1.1"

Maxparametercount= "-1"

connectiontimeout= "20000"

uriencoding= "UTF-8"/>


Maxparametercount= "-1" means no limit

Tomcat middleware submits form data too large warning processing scheme

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.