[rabbitmq-discuss] RabbitMQ subscriber loses connection across firewalls after long idle

Emile Joubert emile at rabbitmq.com
Mon Jul 2 11:39:06 BST 2012


On 02/07/12 10:34, Deelo55 wrote:

> public class TimeoutTest {

There is nothing in this code to indicate that heartbeats are actually
in effect. You can check for heartbeats by running the following command
at 10s intervals:

rabbitmqctl list_connections name send_oct recv_oct

You should see both "send_oct" and "recv_oct" increment by 8. If these
values stay constant on an idle connection then heartbeats have not been
enabled, and that is probably why the firewall is closing the connection.

You could also use a protocol analyser (such as WireShark) to monitor
traffic on port 5672 and inspect heartbeats that way.


More information about the rabbitmq-discuss mailing list