Results 1 to 3 of 3

Thread: RabbitMq Consumer lost connection after work for while

  1. #1
    Join Date
    Feb 2012
    Posts
    4

    Exclamation 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 at 10:05 PM.

  2. #2
    Join Date
    Apr 2012
    Posts
    9

    Default

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

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

  3. #3
    Join Date
    Feb 2012
    Posts
    4

    Default

    thanks, i resolved it yesterday with heartbeat setting.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •