Tuesday, December 24, 2013
Bad Request & Request Header Is Too Large Error in Glassfish servers
"BAD REQUEST" on webpage while downloading multiple files from application and in the logs "REQUEST HEADER IS TOO LARGE" exceptions as below
Error
[#|2013-04-12T12:34:47.769+0000|SEVERE|oracle-glassfish3.1.1|com.sun.grizzly.config.GrizzlyServiceListener|_ThreadID=25;_ThreadName=Thread-2;|GRIZZLY0040: Request header is too large.
java.nio.BufferOverflowException
at com.sun.grizzly.tcp.http11.InternalInputBuffer.fill(InternalInputBuffer.java:765)
at com.sun.grizzly.tcp.http11.InternalInputBuffer.parseHeader(InternalInputBuffer.java:669)
at com.sun.grizzly.tcp.http11.InternalInputBuffer.parseHeaders(InternalInputBuffer.java:555)
at com.sun.grizzly.http.ProcessorTask.parseRequest(ProcessorTask.java:881)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:692
Solution :
To over come the "REQUEST HEADER IS TOO LARGE" issue we have to change the Buffer size from 8KB (default) to 1 MB (depending on requirement)
Below is the navigation path to update the buffer size
Configurations ---> server-config ---> Network Config ---> Transports ---> tcp ---> Buffer Size
Labels:
Glassfish
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment