users@glassfish.java.net

Request header is too large

From: <glassfish_at_javadesktop.org>
Date: Wed, 20 Oct 2010 09:37:27 PDT

Hi,

I've 2 servers running glassfish. One is working fine but the other one once a day starts throwing exceptions:

[#|2010-10-20T17:03:15.059+0100|SEVERE|glassfish3.0.1|com.sun.grizzly.config.GrizzlyServiceListener|_ThreadID=401;_ThreadName=Thread-1;|Unblocking keep-alive exception
java.lang.IllegalArgumentException: Request header is too large
        at com.sun.grizzly.tcp.http11.InternalInputBuffer.fill(InternalInputBuffer.java:756)
        at com.sun.grizzly.tcp.http11.InternalInputBuffer.parseRequestLine(InternalInputBuffer.java:393)
        at com.sun.grizzly.http.ProcessorTask.parseRequest(ProcessorTask.java:821)
        at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:659)
        at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
        at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
        at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
        at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
        at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
        at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
        at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
        at java.lang.Thread.run(Thread.java:619)

As soon as that happens, 2/3 of the requests are dropped by the server with this error message. When I go to the admin pages and modify the header buffer length, the server resumes working normally for a day or so and then again same issue. Any idea why this happens?

Thanks
[Message sent by forum member 'ariskk']

http://forums.java.net/jive/thread.jspa?messageID=485755