[rabbitmq-discuss] client connect problems

Robert Fuller fullergalway at gmail.com
Fri Dec 3 12:03:48 GMT 2010


Hi,

I had an issue for several hours where clients from many hosts were
not able to connect to a running rabbitmq server (2.2.0). list_queues
showed only a small number of items in the queues. Eventually after
restarting rabbitmq server everything returned immediately to normal.

client stack seems to be sometimes this:
java.net.ConnectException: Connection timed out
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at com.rabbitmq.client.ConnectionFactory.createFrameHandler(ConnectionFactory.java:338)
	at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:376)


and sometimes this:
java.io.IOException
	at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:121)
	at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:274)
	at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:379)
	at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:399)
...
Caused by: com.rabbitmq.client.ShutdownSignalException: connection
error; reason: java.net.SocketException: Connection reset
	at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:81)
	at com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:47)
	at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:342)
	at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:258)
	... 39 more
Caused by: java.net.SocketException: Connection reset
	at java.net.SocketInputStream.read(SocketInputStream.java:168)
	at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
	at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
	at java.io.DataInputStream.readUnsignedByte(DataInputStream.java:271)
	at com.rabbitmq.client.impl.Frame.readFrom(Frame.java:118)
	at com.rabbitmq.client.impl.SocketFrameHandler.readFrame(SocketFrameHandler.java:155)
	at com.rabbitmq.client.impl.AMQConnection.readFrame(AMQConnection.java:393)
	at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:421)



I could see nothing unusual on the server using top (memory and cpu
usage ok), or in the rabbitmq logs.

What can I do to produce you a log on the server should this situation re-occur?

Thanks,
Rob.


More information about the rabbitmq-discuss mailing list