-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Konstantin,
On 9/14/2011 12:53 PM, verlag.preis...@t-online.de wrote: > I'm using Tomcat 7.0.21 with Native 1.1.22 and AJP-APR connector on > Windows Server 2008 (32 bit) with Java 1.7.0, using ISAPI Connector > 1.2.32 for IIS 7. > > When I looked into the log today, I found two occurrencies of a > BufferOverflowException: > > Sep 14, 2011 1:55:20 PM org.apache.coyote.ajp.AjpAprProcessor > process Schwerwiegend: Error processing request > java.nio.BufferOverflowException at > java.nio.DirectByteBuffer.put(DirectByteBuffer.java:343) at > org.apache.coyote.ajp.AjpAprProcessor.output(AjpAprProcessor.java:273) > > at org.apache.coyote.ajp.AbstractAjpProcessor$SocketOutputBuffer.doWrite(AbstractAjpProcessor.java:1082) > at org.apache.coyote.Response.doWrite(Response.java:533) at > org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:368) > > at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:437) > at > org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:321) > > at org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:276) > at > org.apache.catalina.connector.Response.finishResponse(Response.java:502) > > at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:432) > at > org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:185) > > at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515) > at > org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1773) > > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > > at java.lang.Thread.run(Thread.java:722) > > I've never seen those before. What do these exceptions mean? (Why > would Tomcat write over the limit of an ByteBuffer?) Are you using unusually large requests, possibly including chains of client certs? If you have a lot of info that needs to be forwarded from the proxy to Tomcat, you can exceed the max packet size of the connector, and it's possible you could get this exception (instead of a nicer error message). The default is 8k, so if you have large amounts of requests data, you could be overflowing this packet size. Have you set "packetSize" on your <Connector>? Have you set max_packet_size on any of your workers? If so, the worker.max_packet_size and <Connector packetSize="..."> must agree. Hope that helps, - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk5xI1kACgkQ9CaO5/Lv0PDj8gCgua6OVYMwNUHbQ63uqXgo99so yyUAn1eOnZSos7qZJbjaWgf7P0WEoGh/ =crZV -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org