1 Reply Latest reply on May 30, 2008 10:23 AM by Adrian Brock

    Load Balancer & MQ

    Unni N Newbie

      My uil2-service.xml having ConnectAddress and connectPort. Where
      abc.dce.net:18093 (is a DNS) points to the serverIP:8093

      ConnectAddress=abc.dce.net
      ConnectPort=18093

      We have a Ping Time Out issue occuring at every day when we moved to UAT( other environments occasionally gives the exception). I know this can be solved using an ExceptionListener and a reconnect. Since we are doing a migration from Sonic MQ to JBoss MQ and want to do minimum code change. After the server restart, for 4-5 hours server will run normally then will start to give exception.

      Getting a Read Timed out error followed by a Ping error. Not sure whether the Load Balancer broke the connection or jboss does it.

      Any idea what could be the reason for the PING/PONG failure.?

      The Trace log is given below.
      principal=ctcuser;roles=Roles(members:ctc) for rolePrincipals [ctc]
      2008-05-16 22:54:53,161 TRACE [org.jboss.mq.server.TracingInterceptor] RETURN : addMessage
      2008-05-16 22:54:53,161 TRACE [org.jboss.mq.il.uil2.SocketManager] Begin internalSendMessage, one-way msg=org.jboss.mq.il.uil2.msgs.AddMsg31196969[msgType: m_addMessage, msgID: -2147475113, error: null]
      2008-05-16 22:54:53,161 TRACE [org.jboss.mq.il.uil2.SocketManager] End internalSendMessage, msg=org.jboss.mq.il.uil2.msgs.AddMsg31196969[msgType: m_addMessage, msgID: -2147475113, error: null]
      2008-05-16 22:54:53,161 TRACE [org.jboss.mq.il.uil2.ServerSocketManagerHandler] End handleMsg, msgType: 2
      2008-05-16 22:54:53,161 TRACE [org.jboss.mq.il.uil2.SocketManager] Write msg: org.jboss.mq.il.uil2.msgs.AddMsg31196969[msgType: m_addMessage, msgID: -2147475113, error: null]
      2008-05-16 22:54:53,162 TRACE [org.jboss.mq.il.uil2.SocketManager] Read msgType: m_addMessage, msgID: -2147475113
      2008-05-16 22:54:53,162 TRACE [org.jboss.mq.il.uil2.SocketManager] Found replyMap msg: org.jboss.mq.il.uil2.msgs.AddMsg11465505[msgType: m_addMessage, msgID: -2147475113, error: null]
      2008-05-16 22:54:53,162 TRACE [org.jboss.mq.il.uil2.SocketManager] Read msg reply: org.jboss.mq.il.uil2.msgs.AddMsg11465505[msgType: m_addMessage, msgID: -2147475113, error: null]
      2008-05-16 22:54:53,162 TRACE [org.jboss.mq.il.uil2.SocketManager] End internalSendMessage, msg=org.jboss.mq.il.uil2.msgs.AddMsg11465505[msgType: m_addMessage, msgID: -2147475113, error: null]
      2008-05-16 22:54:55,521 TRACE [org.jboss.mq.il.uil2.SocketManager] Exiting on IOE
      java.net.SocketTimeoutException: Read timed out
      at java.net.SocketInputStream.socketRead0(Native Method)
      at java.net.SocketInputStream.read(SocketInputStream.java:129)
      at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
      at org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:79)
      at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2196)
      at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2376)
      at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2443)
      at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2515)
      at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2664)
      at java.io.ObjectInputStream.readByte(ObjectInputStream.java:875)
      at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:316)
      at java.lang.Thread.run(Thread.java:595)
      2008-05-16 22:54:55,522 TRACE [org.jboss.mq.Connection] Notified of failure reason=Exiting on IOE Connection@30545452[token=ConnectionToken:ID:2/8241c04a277f03333bf52f3623fcc9f9 rcvstate=STOPPED]
      java.net.SocketTimeoutException: Read timed out
      at java.net.SocketInputStream.socketRead0(Native Method)
      at java.net.SocketInputStream.read(SocketInputStream.java:129)
      at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
      at org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:79)
      at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2196)
      at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2376)
      at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2443)
      at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2515)
      at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2664)
      at java.io.ObjectInputStream.readByte(ObjectInputStream.java:875)
      at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:316)
      at java.lang.Thread.run(Thread.java:595)
      2008-05-16 22:54:55,522 WARN [org.jboss.mq.Connection] Connection failure, use javax.jms.Connection.setExceptionListener() to handle this error and reconnect
      org.jboss.mq.SpyJMSException: Exiting on IOE; - nested throwable: (java.net.SocketTimeoutException: Read timed out)
      at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:72)
      at org.jboss.mq.Connection.asynchFailure(Connection.java:423)
      at org.jboss.mq.il.uil2.UILClientILService.asynchFailure(UILClientILService.java:174)
      at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleStop(SocketManager.java:439)
      at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:371)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: java.net.SocketTimeoutException: Read timed out
      at java.net.SocketInputStream.socketRead0(Native Method)
      at java.net.SocketInputStream.read(SocketInputStream.java:129)
      at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
      at org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:79)
      at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2196)
      at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2376)
      at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2443)
      at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2515)
      at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2664)
      at java.io.ObjectInputStream.readByte(ObjectInputStream.java:875)
      at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:316)
      ... 1 more
      2008-05-16 22:54:55,524 DEBUG [org.jboss.mq.il.uil2.SocketManager] End ReadTask.run