-
Oct 31st, 2012, 09:56 PM
#1
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.
-
Nov 5th, 2012, 01:40 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
-
Nov 5th, 2012, 11:01 PM
#3
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
-
Forum Rules