SAP Knowledge Base Article - Preview

3193543 - How to solve "Request header is too large" error

Symptom

In the application logs, some heavy requests with long parameters can't be handled in the application side, and get the below error:



*******

{"origin":"catalina","timeMillis":1606910452759,"thread":"hybrisHTTP12","level":"INFO","loggerName":"org.apache.coyote.http11.Http11Processor","threadId":114,"threadPriority":5,"message":"Error parsing HTTP request header
Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.","contextMap":
{"sourceClassName":"org.apache.coyote.http11.Http11Processor","sourceMethodName":"service"},"thrown":
{"localizedMessage":"Request header is too large","message":"Request header is too large","name":"java.lang.IllegalArgumentException","extendedStackTrace":[
{"class":"org.apache.coyote.http11.Http11InputBuffer","method":"parseHeaders","file":"Http11InputBuffer.java","line":618},
{"class":"org.apache.coyote.http11.Http11Processor","method":"service","file":"Http11Processor.java","line":524},
{"class":"org.apache.coyote.AbstractProcessorLight","method":"process","file":"AbstractProcessorLight.java","line":65},
{"class":"org.apache.coyote.AbstractProtocol$ConnectionHandler","method":"process","file":"AbstractProtocol.java","line":818},
{"class":"org.apache.tomcat.util.net.NioEndpoint$SocketProcessor","method":"doRun","file":"NioEndpoint.java","line":1627},
{"class":"org.apache.tomcat.util.net.SocketProcessorBase","method":"run","file":"SocketProcessorBase.java","line":49},
{"class":"java.util.concurrent.ThreadPoolExecutor","method":"runWorker","file":"ThreadPoolExecutor.java","line":1128},
{"class":"java.util.concurrent.ThreadPoolExecutor$Worker","method":"run","file":"ThreadPoolExecutor.java","line":628},
{"class":"org.apache.tomcat.util.threads.TaskThread$WrappingRunnable","method":"run","file":"TaskThread.java","line":61},
{"class":"java.lang.Thread","method":"run","file":"Thread.java","line":834}]}}
*******


Read more...

Environment

SAP Commerce Cloud V2

Product

SAP Commerce Cloud all versions

Keywords

CCv2, Tomcat, maxHttpHeaderSize , KBA , CEC-SCC-CLA-ENV-EMG , Environment Management , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.