1. 程式人生 > >rabbitmq 間隔的報錯com.rabbitmq.client.ShutdownSignalException: connection error

rabbitmq 間隔的報錯com.rabbitmq.client.ShutdownSignalException: connection error

檢視日誌過程中,發現rabbitmq一直在爆一下錯誤:

2018-03-21 17:42:16.862|pool-3-thread-1238894|DEBUG|o.s.a.r.l.BlockingQueueConsumer|Received shutdown signal for consumer tag=amq.ctag-nLCjkQmrdZmNBz-oVMgHyw
com.rabbitmq.client.ShutdownSignalException: connection error
    at com.rabbitmq.client.impl.AMQConnection.startShutdown
(AMQConnection.java:861) at com.rabbitmq.client.impl.AMQConnection.shutdown(AMQConnection.java:851) at com.rabbitmq.client.impl.AMQConnection.handleFailure(AMQConnection.java:670) at com.rabbitmq.client.impl.AMQConnection.access$400(AMQConnection.java:47) at com.rabbitmq.client.impl.AMQConnection
$MainLoop.run(AMQConnection.java:575) at java.lang.Thread.run(Thread.java:748) Caused by: java.io.EOFException: null at java.io.DataInputStream.readUnsignedByte(DataInputStream.java:290) at com.rabbitmq.client.impl.Frame.readFrom(Frame.java:91) at com.rabbitmq.client.impl.SocketFrameHandler
.readFrame(SocketFrameHandler.java:164) at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:571) ... 1 common frames omitted

在其他環境定位該問題,並沒有發現

所以初步懷疑是叢集產生的。

聯絡運維去調整了下haproxy配置資訊 問題解決

timeout client 1m
timeout server 1m

This was an issue in the timeouts between haproxy config & default rabbit-heartbeat.

Bumping up the haproxy timeout client/server from 1m to 10m seems to have fixed it.

參考地址:詳見