Labels

Tuesday, May 20, 2014

org.apache.jk.common.MsgAjp cpBytes SEVERE: Overflow

May 16, 2014 6:54:01 AM org.apache.jk.common.MsgAjp cpBytes
SEVERE: Buffer overflow: buffer.len=8192 pos=8188 data=9
May 16, 2014 6:54:01 AM org.apache.jk.common.MsgAjp cpBytes
SEVERE: Overflow
java.lang.Throwable
        at org.apache.jk.common.MsgAjp.cpBytes(MsgAjp.java:196)
        at org.apache.jk.common.MsgAjp.appendByteChunk(MsgAjp.java:170)
        at org.apache.jk.common.MsgAjp.appendBytes(MsgAjp.java:155)
        at org.apache.jk.common.JkInputStream.appendHead(JkInputStream.java:311)
        at org.apache.jk.core.MsgContext.action(MsgContext.java:266)
        at org.apache.jk.core.MsgContext.action(MsgContext.java:302)
        at org.apache.coyote.Response.action(Response.java:183)
        at org.apache.coyote.Response.finish(Response.java:305)
        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:195)
        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
        at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)

        at java.lang.Thread.run(Thread.java:662)

Solution:- While running perl scripts thourgh web application we got above error .we did below change to work.
we need to default packetSize like this in mod_jk file:

<Connector ... packetSize="16384" />

Make sure you set the max_packet_size in mod_jk TO BE THE SAME VALUE,
otherwise everything will go to problem. You can go up to 65536 bytes for
the packet size if you really need to. Note that larger packet sizes may
have a performance impact.

No comments:

Post a Comment