Ramdom com.rabbitmq.client.ShutdownSignalException:连接错误

时间:2019-02-20 07:56:49

标签: rabbitmq amqp spring-amqp

我们有一个应用程序,使用Spring-AMQP通过AMQP连接到远程服务器。最近,我们随机收到连接错误。这些错误每天在不同的时间发生一次或两次,并且开始成为一个主要问题。 日志中保留的跟踪如下:

com.rabbitmq.client.ShutdownSignalException: connection error
    at com.rabbitmq.client.impl.AMQConnection.startShutdown(AMQConnection.java:868)
    at com.rabbitmq.client.impl.AMQConnection.shutdown(AMQConnection.java:858)
    at com.rabbitmq.client.impl.AMQConnection.handleFailure(AMQConnection.java:681)
    at com.rabbitmq.client.impl.AMQConnection.access$400(AMQConnection.java:47)
    at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:582)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:210)
    at java.net.SocketInputStream.read(SocketInputStream.java:141)
    at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
    at sun.security.ssl.InputRecord.read(InputRecord.java:503)
    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:983)
    at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:940)
    at sun.security.ssl.AppInputStream.read(AppInputStream.java:105)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
    at java.io.DataInputStream.readUnsignedByte(DataInputStream.java:288)
    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:578)
    ... 1 more

我需要获取有关这些错误的更多信息,以查看问题出在哪里。您认为我能看起来/做什么?

1 个答案:

答案 0 :(得分:1)

  

Connection reset

表示客户端收到RST TCP数据包-套接字已关闭。首先要看的是服务器日志。但这可能是网络中的某些其他组件(防火墙,路由器等)。