On 07/12/2023 15:37, Ivano Luberti wrote:
Hi, since a few days these errors started showing in my log files:

06-Dec-2023 07:39:56.082 INFO [http-nio-8080-exec-5826] org.apache.coyote.http11.Http11Processor.service Error parsing HTTP request header  Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.
    java.lang.IllegalArgumentException: Request header is too large
        at org.apache.coyote.http11.Http11InputBuffer.fill(Http11InputBuffer.java:790)         at org.apache.coyote.http11.Http11InputBuffer.parseHeader(Http11InputBuffer.java:975)         at org.apache.coyote.http11.Http11InputBuffer.parseHeaders(Http11InputBuffer.java:604)         at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:294)         at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)         at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)         at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)         at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)         at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)         at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)         at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:750)

I know I can increase the tolerated header size using sometjing like this:

<Connector port="8080" maxHttpHeaderSize="65536" protocol="HTTP/1.1" ... />

Bu my question is how can i debug the issue?

For example: how can i find the page requested when the exception was raised?

Match the timestamp in the logs with the timestamp in the access logs of the associated 400 response.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to