On 6 Oct 2015 at 20:17:16, dan boston (
danbos...@gmail.com) wrote:
> Thanks for your reply.
>
> If it is set for the server by default, what is the default time
> for the server to timeout if the message sent out to consumer has
> not been acknowledged? I just want understand what caused heartbeat
> timeout since I could not find any documents that describe how
> this works.
Default heartbeat is 580 seconds.
> Also, do I need to set enable heartbeat? And why?
> I am using Java client 3.1.2.
That client should already use a thread pool (an ExecutorService, to be specific),
so I/O loop blocking by slow consumers, which has been an issue e.g.
in .NET client up to 3.5.0, shouldn’t be applicable.
It could be a heartbeat sender thread starvation.
In any case, there is no reason to use Java client 3.1.x, and we *highly* recommend
moving on from 3.1.x server, which is dozens of releases behind:
http://www.rabbitmq.com/changelog.html
--
MK
Staff Software Engineer, Pivotal/RabbitMQ