4 Replies Latest reply on May 9, 2008 8:14 PM by ergautam

    mod_jk -  Broken Pipe error

    meet_nagi

      Hi,

      In my production system we have a set up of Clustered environment with two nodes of JBOSS-4.0.5.GA, two apache mod_jk 1.2.23 and Cisco load balancer. We also have a firewall inbetween apache and jboss.

      When users are trying to access the web pages its loading too long and after some time we are getting the below "Broken Pipe" error.

      We also set socket_keepalive=1 in workers.properties but it didn't help.

      Any suggestions will be greatly appreciated.

      Error:

      2007-08-03 01:01:26,003 WARN [org.apache.jk.core.MsgContext] Error sending end packet

      java.net.SocketException: Broken pipe

      at java.net.SocketOutputStream.socketWrite0(Native Method)

      at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)

      at java.net.SocketOutputStream.write(SocketOutputStream.java:136)

      at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:531)

      at org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:112)

      at org.apache.jk.core.MsgContext.action(MsgContext.java:293)

      at org.apache.coyote.Response.action(Response.java:182)

      at org.apache.coyote.Response.finish(Response.java:304)

      at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:204)

      at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)

      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:684)

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

      2007-08-03 01:01:26,007 WARN [org.apache.jk.common.ChannelSocket] processCallbacks status 2

        • 1. Re: mod_jk -  Broken Pipe error
          alrubinger

          Is the cause of these a ClientAbortException? I've seen this frequently when users reload or close their browsers while the server is still sending data (the response).

          Also wondering the effects of this.

          S,
          ALR

          • 2. Re: mod_jk -  Broken Pipe error
            iktuz

            Hi all, any ideas how to solve this issue? I am not sure what is the exactly cause but Apache frozens and can not connect with Tomcat after that.

            Best Regards,
            José Renato

            • 3. Re: mod_jk -  Broken Pipe error
              ryousure2000

              Did you find any solution for the issue. We are having same issue. THanks

              • 4. Re: mod_jk -  Broken Pipe error
                ergautam

                I am not sure if this works for you. But I used to get some issue between apache and Jboss because of the firewall.

                This is what i did,
                my workers.properties looks like this:

                worker.list=loadbalancer
                worker.maintain=60
                
                # Define the first node...
                worker.node1.port=7660
                worker.node1.host=xyz.com
                worker.node1.type=ajp13
                worker.node1.lbfactor=1
                worker.node1.socket_keepalive=true
                worker.node1.connect_timeout=10000
                worker.node1.prepost_timeout=10000
                worker.node1.connection_pool_timeout=600


                and the ajp connector in tomcat's server.xml looks like this:

                
                <!-- Define an AJP 1.3 Connector on port 8009 -->
                 <Connector port="7660" address="${jboss.bind.address}" protocol="AJP/1.3"
                 emptySessionPath="true" enableLookups="false" redirectPort="48443" connectionTimeout= "600000" />


                Here is the link that i referred to :

                http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html