[jboss-user] [JBoss Messaging Users] - Re: How to set socket timeouts?

belcar do-not-reply at jboss.com
Tue Nov 24 10:36:13 EST 2009


Hi Howard

I'm not sure if it is a bug or not but here's the following:

I've TRACED org.jboss.jms and org.jboss.remoting on the polling client.
I can see the client ping the server every 30 seconds.
I see no exceptions in the logs.

However after 10 or 15 minutes this client no longer finds messages on the queue, but the ping remains functioning.  If I restart my client process running on a remote jboss 4.2.3, the client perfectly finds all messages it has missed.  This client is the only reader.

2009-11-24 16:30:01,952 TRACE [org.jboss.jms.wireformat.JMSWireFormat] Wrote packet
  | 2009-11-24 16:30:01,952 TRACE [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[a1d92a, bisocket://10.249.6.1:4457] done writing invocation to marshaller
  | 2009-11-24 16:30:01,952 TRACE [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[a1d92a, bisocket://10.249.6.1:4457] reading version from input stream
  | 2009-11-24 16:30:01,954 TRACE [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[a1d92a, bisocket://10.249.6.1:4457] read version 22 from input stream
  | 2009-11-24 16:30:01,954 TRACE [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[a1d92a, bisocket://10.249.6.1:4457] reading response from unmarshaller
  | 2009-11-24 16:30:01,954 TRACE [org.jboss.jms.wireformat.JMSWireFormat] Reading
  | 2009-11-24 16:30:01,954 TRACE [org.jboss.jms.wireformat.JMSWireFormat] Stream is already DataInputStream :)
  | 2009-11-24 16:30:01,954 TRACE [org.jboss.jms.wireformat.JMSWireFormat] Created packet SerializedPacket[null]
  | 2009-11-24 16:30:01,954 TRACE [org.jboss.jms.wireformat.JMSWireFormat] Reading packet
  | 2009-11-24 16:30:01,954 TRACE [org.jboss.jms.wireformat.JMSWireFormat] Read packet
  | 2009-11-24 16:30:01,955 TRACE [org.jboss.jms.wireformat.JMSWireFormat] Returning payload: InvocationResponse[dd09a6, InvocationResponse[1a498b6, true]]
  | 2009-11-24 16:30:01,955 TRACE [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[a1d92a, bisocket://10.249.6.1:4457] returned NEW ClientSocketWrapper[Socket[addr=/10.249.6.1,port=4457,localport=37299].a6aa31] to pool
  | 2009-11-24 16:30:01,955 TRACE [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[a1d92a, bisocket://10.249.6.1:4457] released semaphore: 200
  | 2009-11-24 16:30:01,955 TRACE [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[a1d92a, bisocket://10.249.6.1:4457] received response InvocationResponse[dd09a6, InvocationResponse[1a498b6, true]]
  | 2009-11-24 16:30:01,955 TRACE [org.jboss.remoting.MicroRemoteClientInvoker] SocketClientInvoker[a1d92a, bisocket://10.249.6.1:4457] received InvocationResponse so going to return response's return value of InvocationResponse[1a498b6, true]
  | 2009-11-24 16:30:01,955 TRACE [org.jboss.remoting.LeasePinger] LeasePinger[3j001-jg0dw9-g2et9fcn-1-g2et9kaa-9:SocketClientInvoker[a1d92a, bisocket://10.249.6.1:4457](3j001-jg0dw9-g2et9fcn-1-g2et9ka6-8)] successfully pinged the server
  | 2009-11-24 16:30:01,969 TRACE [org.jboss.remoting.ConnectionValidator] ConnectionValidator[a4effe:SocketClientInvoker[5f8245, bisocket://10.249.6.1:4457], pingPeriod=10000 ms] sending PING tied to lease
  | 2009-11-24 16:30:01,969 TRACE [org.jboss.remoting.ConnectionValidator] pinging, sending InvocationRequest[1b5eaed, self, $PING$] over SocketClientInvoker[5f8245, bisocket://10.249.6.1:4457]
  | 2009-11-24 16:30:01,969 TRACE [org.jboss.remoting.MicroRemoteClientInvoker] SocketClientInvoker[5f8245, bisocket://10.249.6.1:4457](1) invoking InvocationRequest[1b5eaed, self, $PING$]
  | 2009-11-24 16:30:01,969 TRACE [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[5f8245, bisocket://10.249.6.1:4457] retryCount: 0
  | 2009-11-24 16:30:01,969 TRACE [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[5f8245, bisocket://10.249.6.1:4457] obtained semaphore: 199
  | 2009-11-24 16:30:01,969 TRACE [org.jboss.jms.client.remoting.ClientSocketWrapper] checking open connection
  | 2009-11-24 16:30:01,969 TRACE [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[5f8245, bisocket://10.249.6.1:4457] reusing pooled connection: NEW ClientSocketWrapper[Socket[addr=/10.249.6.1,port=4457,localport=49479].fbb5f5]
  | 2009-11-24 16:30:01,969 TRACE [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[5f8245, bisocket://10.249.6.1:4457] writing version 22 on output stream
  | 2009-11-24 16:30:01,969 TRACE [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[5f8245, bisocket://10.249.6.1:4457] writing invocation to marshaller
  | 2009-11-24 16:30:01,969 TRACE [org.jboss.jms.wireformat.JMSWireFormat] Writing InvocationRequest[1b5eaed, self, $PING$]
  | 2009-11-24 16:30:01,969 TRACE [org.jboss.jms.wireformat.JMSWireFormat] Stream is a DataOutputStream
  | 2009-11-24 16:30:01,969 TRACE [org.jboss.jms.wireformat.JMSWireFormat] Writing packet: SerializedPacket[InvocationRequest[1b5eaed, self, $PING$]]
  | 2009-11-24 16:30:01,969 TRACE [org.jboss.remoting.transport.socket.TimedOutputStream] org.jboss.remoting.transport.socket.TimedOutputStream at a53502 scheduled org.jboss.remoting.transport.socket.TimedOutputStream$OutputTimerTask at 1678aef: 30000
  | 2009-11-24 16:30:01,970 TRACE [org.jboss.jms.wireformat.JMSWireFormat] Wrote packet
  | 2009-11-24 16:30:01,970 TRACE [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[5f8245, bisocket://10.249.6.1:4457] done writing invocation to marshaller
  | 2009-11-24 16:30:01,970 TRACE [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[5f8245, bisocket://10.249.6.1:4457] reading version from input stream
  | 2009-11-24 16:30:01,971 TRACE [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[5f8245, bisocket://10.249.6.1:4457] read version 22 from input stream
  | 2009-11-24 16:30:01,971 TRACE [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[5f8245, bisocket://10.249.6.1:4457] reading response from unmarshaller
  | 2009-11-24 16:30:01,971 TRACE [org.jboss.jms.wireformat.JMSWireFormat] Reading
  | 2009-11-24 16:30:01,971 TRACE [org.jboss.jms.wireformat.JMSWireFormat] Stream is already DataInputStream :)
  | 2009-11-24 16:30:01,971 TRACE [org.jboss.jms.wireformat.JMSWireFormat] Created packet SerializedPacket[null]
  | 2009-11-24 16:30:01,971 TRACE [org.jboss.jms.wireformat.JMSWireFormat] Reading packet
  | 2009-11-24 16:30:01,971 TRACE [org.jboss.jms.wireformat.JMSWireFormat] Read packet
  | 2009-11-24 16:30:01,971 TRACE [org.jboss.jms.wireformat.JMSWireFormat] Returning payload: InvocationResponse[1fbaf73, true]
  | 2009-11-24 16:30:01,971 TRACE [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[5f8245, bisocket://10.249.6.1:4457] returned NEW ClientSocketWrapper[Socket[addr=/10.249.6.1,port=4457,localport=49479].fbb5f5] to pool
  | 2009-11-24 16:30:01,971 TRACE [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[5f8245, bisocket://10.249.6.1:4457] released semaphore: 200
  | 2009-11-24 16:30:01,971 TRACE [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[5f8245, bisocket://10.249.6.1:4457] received response InvocationResponse[1fbaf73, true]
  | 2009-11-24 16:30:01,971 TRACE [org.jboss.remoting.MicroRemoteClientInvoker] SocketClientInvoker[5f8245, bisocket://10.249.6.1:4457] received InvocationResponse so going to return response's return value of true
  | 2009-11-24 16:30:01,971 TRACE [org.jboss.remoting.ConnectionValidator] ConnectionValidator got successful ping using SocketClientInvoker[5f8245, bisocket://10.249.6.1:4457]

If I would open a JIRA issue (not sure it's a bug though), I guess this is a remoting issue?  Advantage is I can add a screenshot of the setup.

Thanks for your help
G.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267326#4267326

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267326



More information about the jboss-user mailing list