Announcement Announcement Module
Collapse
No announcement yet.
RabbitMq Consumer lost connection after work for while Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • RabbitMq Consumer lost connection after work for while

    Hi guys :
    I just come across a strange problem :
    I deploy two consumer application , and use work and rpc pattern for sync call, when the consumer application startup , they both work well, but after a while, the messages headed up in the queue, and the consumer application can not receive any message.
    I checked the rabbitmq-server log file,it appears that the problem maybe caused by network issue ({inet_error,ehostunreach}) , after restart the consumer application , they can work for a while, and then lost connection again.
    Versions:
    rabbitmq server 2.8.5,
    java rabbitmq client 2.8.4,
    erlang 5.9.1 ,
    spring ampq 1.1.2
    Last edited by raise; Oct 31st, 2012, 11:05 PM.

  • #2
    are you using heartbeat in your connection? that can happen if you don't use it.

    http://stackoverflow.com/questions/1...pring-rabbitmq

    Comment


    • #3
      thanks, i resolved it yesterday with heartbeat setting.

      Comment

      Working...
      X