The Tomcat maxhttpheadersize settings are not large enough to cause SSO logon failures

Source: Internet
Author: User

2016-11-06 xxxx Org.apache.coyote.http11.Http11Processor-Error Parsing HTTP request Header Note:further occurrences of HTTP header parsing errors'll be logged at DEBUG Lev El.java.lang.IllegalArgumentException:Request header is too large at Org.apache.coyote.http11.InternalInputBuffer.fill (Internalinputbuffer.java:512) at Org.apache.coyote.http11.InternalInputBuffer.fill (Internalinputbuffer.java:501) at Org.apache.coyote.http11.InternalInputBuffer.parseHeader (Internalinputbuffer.java:393) at Org.apache.coyote.http11.InternalInputBuffer.parseHeaders (Internalinputbuffer.java:268) at Org.apache.coyote.http11.AbstractHttp11Processor.process (Abstracthttp11processor.java:1011) at Org.apache.coyote.abstractprotocol$abstractconnectionhandler.process (Abstractprotocol.java:623) at Org.apache.tomcat.util.net.jioendpoint$socketprocessor.run (Jioendpoint.java:318) at Java.util.concurrent.ThreadPoolExecutor.runWorker (Threadpoolexecutor.java:1142) at Java.util.concurrent.threadpoolexecutor$worker.run (Threadpoolexecutor.java:617) at Org.apache.tomcat.util.threads.taskthread$wrappingrunnable.run (Taskthread.java:61) at Java.lang.Thread.run (Thread.java:745)

The default Maxhttpheadersize setting for Tomcat seems to be 4K, and we've increased it to 8K, which is 8192. In the case of an upgrade, the customer has reported that the SSO feature is not available. It was later discovered that we covered the customer-defined maxhttpheadersize value, and the customer defined 32K. Because the customer complex network, may automatically add some other parameters in the URL, causing the URL to pass too much, the default 8K is not enough, there will be the above error in the background. When the maxhttpheadersize value is increased, the error disappears and the problem is resolved.

The Tomcat maxhttpheadersize settings are not large enough to cause SSO logon failures

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.