Axon AMQP - EventBus - RabbitMq / Haproxy error


In a rabbitmq-cluster setup, we’re seeing this message frequently. Is this related to any misconfiguration or network related? We are seeing this consistently (every second) which indicates it may not be network related.
This error is not noticed in a single-node rabbit-setup.


  • rabbit-mq 3 node cluster
  • haproxy for load-balancing

k.eventhandling.amqp.spring.ExtendedMessageListenerContainer WARN {Consumer raised exception, processing can restart if the connection factory supports it}

com.rabbitmq.client.ShutdownSignalException: connection error; reason:
at com.rabbitmq.client.impl.AMQConnection.startShutdown( ~[amqp-client-3.1.3.jar:na]
at com.rabbitmq.client.impl.AMQConnection.shutdown( ~[amqp-client-3.1.3.jar:na]
at com.rabbitmq.client.impl.AMQConnection$ ~[amqp-client-3.1.3.jar:na]
Caused by: null
at ~[na:1.8.0_25]
at com.rabbitmq.client.impl.Frame.readFrom( ~[amqp-client-3.1.3.jar:na]
at com.rabbitmq.client.impl.SocketFrameHandler.readFrame( ~[amqp-client-3.1.3.jar:na]
at com.rabbitmq.client.impl.AMQConnection$ ~[amqp-client-3.1.3.jar:na]



listen rabbitmq
mode tcp
balance roundrobin
server rabbit1 check inter 5000 rise 2 fall 3
server rabbit2 check inter 5000 rise 2 fall 3
server rabbit3 check inter 5000 rise 2 fall 3



It looks like the Rabbit client is facing a closed connection on a regular basis. Does your load balancer or maybe firewall close connections it believes are idle?



Thanks for the tip. Apparently the time-out mismatch between haproxy & rabbit was the issue.

Bumping up the timeout client/server from 1m to 10 m fixed the issue.