问题
I am hitting an error on Grizzly Server :
org.glassfish.grizzly.http.HttpCodecFilter handleRead
FINE: Error parsing HTTP header
java.lang.IllegalStateException: HTTP packet header is too large
at org.glassfish.grizzly.http.HttpCodecFilter$HeaderParsingState.checkOverflow(HttpCodecFilter.java:1904)
at org.glassfish.grizzly.http.HttpCodecFilter.decodeHttpPacketFromBytes(HttpCodecFilter.java:662)
After a little debugging using the above message HTTP packet header is too large
was the reason for failure. The header size that I was using was more than the default 4k size
.
Found this from the link.
The link also suggests changing the maxPostSize
parameter to higher numbers. How can I configure this parameter to higher numbers? I am not finding good help on the web for this.
来源:https://stackoverflow.com/questions/35393910/how-to-configure-grizzly-servers-maxpostsize