[rabbitmq-discuss] [SOS] About MQ server connection reset issues

Tim Watson tim at rabbitmq.com
Mon Mar 25 15:05:29 GMT 2013


On 25 Mar 2013, at 14:28, Li, Chenglin wrote:
> We use rabbitmq as message delivery channel to mobile client. And in our DEV environment, all works fine, but in our QA environment, we deploy LVS as load balance and cluster, and after server run for some time(about 2-3 hours), the server will throw below error log, can someone give us some ideas for this issue? Thanks in advance.

Looking at this - "the server will throw below error log" is incorrect. That error log comes from the client, not the server.

> com.rabbitmq.client.ShutdownSignalException: connection error; reason: java.net.SocketException: Connection reset

... and the cause is pretty clear. The connection has been closed. Could this be a network disruption perhaps? Does your load balancer by any chance have some threshold after which connections it deems to be 'idle' are bounced or something like that?


>          at com.rabbitmq.client.QueueingConsumer.handle(QueueingConsumer.java:198)
>          at com.rabbitmq.client.QueueingConsumer.nextDelivery(QueueingConsumer.java:214)
>          at com.gnet.ms.util.thread.task.impl.ActionExchangeTask.execute(ActionExchangeTask.java:65)
>          at com.gnet.ms.util.thread.WorkThread.run(WorkThread.java:43)
> Caused by: java.net.SocketException: Connection reset
>          at java.net.SocketInputStream.read(SocketInputStream.java:185)
>          at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
>          at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
>          at java.io.DataInputStream.readUnsignedByte(DataInputStream.java:288)
>          at com.rabbitmq.client.impl.Frame.readFrom(Frame.java:95)
>          at com.rabbitmq.client.impl.SocketFrameHandler.readFrame(SocketFrameHandler.java:131)
>          at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:501)
> /*********************************************************************************/
> Thanks,
> Jack
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss

More information about the rabbitmq-discuss mailing list