每小时发生一次,每45分钟一次,但重新启动后恢复正常。期待您的回复。谢谢
SpringBoot配置 弹簧: rabbitmq: 主机:localhost 端口:30006 用户名:dev 密码:dev 虚拟主机:dev
日志:
Line 1852: 00:45:41.567 INFO [SimpleAsyncTaskExecutor-50] o.s.a.r.l.SimpleMessageListenerContainer - Restarting Consumer@24f5fdb9: tags=[{}], channel=null, acknowledgeMode=MANUAL local queue size=0
Line 1854: 00:45:41.764 INFO [SimpleAsyncTaskExecutor-50] o.s.a.r.l.SimpleMessageListenerContainer - Restarting Consumer@3fa73827: tags=[{}], channel=null, acknowledgeMode=MANUAL local queue size=0
Line 1857: 00:45:41.854 INFO [SimpleAsyncTaskExecutor-50] o.s.a.r.l.SimpleMessageListenerContainer - Restarting Consumer@148fa794: tags=[{}], channel=null, acknowledgeMode=MANUAL local queue size=0
Line 1858: 00:45:41.854 INFO [SimpleAsyncTaskExecutor-50] o.s.a.r.l.SimpleMessageListenerContainer - Restarting Consumer@6563fa14: tags=[{}], channel=null, acknowledgeMode=MANUAL local queue size=0
Line 1860: 00:45:41.854 INFO [SimpleAsyncTaskExecutor-50] o.s.a.r.l.SimpleMessageListenerContainer - Restarting Consumer@33d2c261: tags=[{}], channel=null, acknowledgeMode=MANUAL local queue size=0
Line 1862: 00:45:42.053 INFO [SimpleAsyncTaskExecutor-50] o.s.a.r.l.SimpleMessageListenerContainer - Restarting Consumer@21497ff: tags=[{}], channel=null, acknowledgeMode=MANUAL local queue size=0
Line 1864: 00:45:42.053 INFO [SimpleAsyncTaskExecutor-50] o.s.a.r.l.SimpleMessageListenerContainer - Restarting Consumer@40383910: tags=[{}], channel=null, acknowledgeMode=MANUAL local queue size=0
Line 1866: 00:45:42.054 INFO [SimpleAsyncTaskExecutor-50] o.s.a.r.l.SimpleMessageListenerContainer - Restarting Consumer@1d33a36f: tags=[{}], channel=null, acknowledgeMode=MANUAL local queue size=0
Line 1868: 00:45:42.054 INFO [SimpleAsyncTaskExecutor-50] o.s.a.r.l.SimpleMessageListenerContainer - Restarting Consumer@4b9b2b15: tags=[{}], channel=null, acknowledgeMode=MANUAL local queue size=0
Line 1870: 00:45:42.132 INFO [SimpleAsyncTaskExecutor-50] o.s.a.r.l.SimpleMessageListenerContainer - Restarting Consumer@7483790c: tags=[{}], channel=null, acknowledgeMode=MANUAL local queue size=0
Line 1872: 00:45:42.219 INFO [SimpleAsyncTaskExecutor-50] o.s.a.r.l.SimpleMessageListenerContainer - Restarting Consumer@5597460c: tags=[{}], channel=null, acknowledgeMode=MANUAL local queue size=0
Line 1889: 01:45:32.263 INFO [SimpleAsyncTaskExecutor-51] o.s.a.r.l.SimpleMessageListenerContainer - Restarting Consumer@6599e1d0: tags=[{amq.ctag-T03MfE_v1zdanumgzZDFNw=oms.trade.sales.order.wms.delivery}], channel=Cached Rabbit Channel: AMQChannel(amqp://oms@*.*.*.*:5672/oms,8), conn: Proxy@5ee5540 Shared Rabbit Connection: SimpleConnection@887778f [delegate=amqp://oms@*.*.*.*:5672/oms, localPort= 50472], acknowledgeMode=MANUAL local queue size=0
Line 1890: 01:45:32.263 INFO [SimpleAsyncTaskExecutor-51] o.s.a.r.l.SimpleMessageListenerContainer - Restarting Consumer@34fc8911: tags=[{amq.ctag-nYV17oLxQezAjKooAmZftA=oms.trade.sales.order.delivery}], channel=Cached Rabbit Channel: AMQChannel(amqp://oms@*.*.*.*:5672/oms,7), conn: Proxy@5ee5540 Shared Rabbit Connection: SimpleConnection@887778f [delegate=amqp://oms@*.*.*.*:5672/oms, localPort= 50472], acknowledgeMode=MANUAL local queue size=0
Line 1891: 01:45:32.263 INFO [SimpleAsyncTaskExecutor-51] o.s.a.r.l.SimpleMessageListenerContainer - Restarting Consumer@5927deae: tags=[{amq.ctag-Dfa_QzmMDesuPRRLPBG9wA=oms.vip.mall.delivery}], channel=Cached Rabbit Channel: AMQChannel(amqp://oms@*.*.*.*:5672/oms,6), conn: Proxy@5ee5540 Shared Rabbit Connection: SimpleConnection@887778f [delegate=amqp://oms@*.*.*.*:5672/oms, localPort= 50472], acknowledgeMode=MANUAL local queue size=0
Line 1980: 01:45:32.342 INFO [SimpleAsyncTaskExecutor-51] o.s.a.r.l.SimpleMessageListenerContainer - Restarting Consumer@7091bd9f: tags=[{amq.ctag-qqczEqvzjL9kaS24FChXdA=oms.trade.sales.order.translate}], channel=Cached Rabbit Channel: AMQChannel(amqp://oms@*.*.*.*:5672/oms,4), conn: Proxy@5ee5540 Shared Rabbit Connection: null, acknowledgeMode=MANUAL local queue size=0
Line 2009: 01:45:32.430 INFO [SimpleAsyncTaskExecutor-51] o.s.a.r.l.SimpleMessageListenerContainer - Restarting Consumer@439644f4: tags=[{amq.ctag-8isextIoIzAm623D3osgbw=oms.trade.refund.order.translate}], channel=Cached Rabbit Channel: AMQChannel(amqp://oms@*.*.*.*:5672/oms,2), conn: Proxy@5ee5540 Shared Rabbit Connection: null, acknowledgeMode=MANUAL local queue size=0
Line 2038: 01:45:32.441 INFO [SimpleAsyncTaskExecutor-51] o.s.a.r.l.SimpleMessageListenerContainer - Restarting Consumer@69f616bb: tags=[{amq.ctag-3IPI8j7BF-PviChcExWbsA=oms.trade.sales.order.dispatch}], channel=Cached Rabbit Channel: AMQChannel(amqp://oms@*.*.*.*:5672/oms,3), conn: Proxy@5ee5540 Shared Rabbit Connection: null, acknowledgeMode=MANUAL local queue size=0
Line 2067: 01:45:32.444 INFO [SimpleAsyncTaskExecutor-51] o.s.a.r.l.SimpleMessageListenerContainer - Restarting Consumer@1065156b: tags=[{amq.ctag-Lsy_nECWz7XDG_gSFpDtzA=oms.vip.dispatch.notice}], channel=Cached Rabbit Channel: AMQChannel(amqp://oms@*.*.*.*:5672/oms,11), conn: Proxy@5ee5540 Shared Rabbit Connection: null, acknowledgeMode=MANUAL local queue size=0
例外:
17:48:22.557 INFO [SimpleAsyncTaskExecutor-27] o.s.a.r.c.CachingConnectionFactory - Attempting to connect to: [10.47.88.159:5672]
17:48:22.557 ERROR [SimpleAsyncTaskExecutor-27] o.s.a.r.l.SimpleMessageListenerContainer - Failed to check/redeclare auto-delete queue(s).
org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection refused (Connection refused)
at org.springframework.amqp.rabbit.support.RabbitExceptionTranslator.convertRabbitAccessException(RabbitExceptionTranslator.java:62)
at org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.createBareConnection(AbstractConnectionFactory.java:476)
at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.createConnection(CachingConnectionFactory.java:614)
at org.springframework.amqp.rabbit.connection.ConnectionFactoryUtils.createConnection(ConnectionFactoryUtils.java:240)
at org.springframework.amqp.rabbit.core.RabbitTemplate.doExecute(RabbitTemplate.java:1797)
at org.springframework.amqp.rabbit.core.RabbitTemplate.execute(RabbitTemplate.java:1771)
at org.springframework.amqp.rabbit.core.RabbitTemplate.execute(RabbitTemplate.java:1752)
at org.springframework.amqp.rabbit.core.RabbitAdmin.getQueueProperties(RabbitAdmin.java:338)
at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.redeclareElementsIfNecessary(AbstractMessageListenerContainer.java:1604)
at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:963)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at com.rabbitmq.client.impl.SocketFrameHandlerFactory.create(SocketFrameHandlerFactory.java:60)
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:955)
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:907)
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:847)
at org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.createBareConnection(AbstractConnectionFactory.java:449)
... 9 common frames omitted
springboot-2.0.2 兔子mq-3.6.6 erlang-20.3 centos-7.3