[rabbitmq-discuss] RabbitMQ server losing connections

niranjan niranjan.par at gmail.com
Fri Oct 30 05:10:50 GMT 2009


Hi All,

I am using RabbitMQ 1.6 with ruby AMQP to subscribe to the queue over 
the network. Immediately after starting the listeners I see the queues 
registered with the server (rabbitmqctl list_queues) as well as 
connections (rabbitmqctl list_connections).

~$ sudo rabbitmqctl list_connections
Listing connections ...
guest    10.7.253.22    53703
guest    10.7.253.12    55797
...done...done.

~$ sudo rabbitmqctl list_queues name durable messages messages_ready
Listing queues ...
foo_deletes    false    0    0
foo_updates    false    0    0
foo_creates    false    0    0
duplicate_listener_on_localhost  false    0    0
...done.

~$ netstat -anlp | grep 5672
tcp        0      0 0.0.0.0:5672            0.0.0.0:*               
LISTEN      -              
tcp        0      0 10.7.253.12:5672        10.7.253.12:55797       
ESTABLISHED -              
tcp        0      0 10.7.253.12:5672        10.7.253.22:53703       
ESTABLISHED -

After an hour or so server loses the connection with with listeners. The 
list_queues still shows all the queues but list_connections shows no 
active connections.

~$ sudo rabbitmqctl list_connections
Listing connections ...
...done...done.

~$ sudo rabbitmqctl list_queues name durable messages messages_ready
Listing queues ...
foo_deletes    false    0    0
foo_updates    false    0    0
foo_creates    false    0    0
duplicate_listener_on_localhost  false    0    0
...done.

~$ netstat -anlp | grep 5672
tcp        0      0 0.0.0.0:5672            0.0.0.0:*               
LISTEN      -              

I am not too sure which side lies the problem as on listener side I 
don't see any logs indicating that the connection is lost, but server 
definitely has lost it. Server not only loses the connection over the 
network but connection from localhost as well.

Has anyone faced similar problem or could you point out where I should 
start?

Thanks and Regards,
Niranjan





More information about the rabbitmq-discuss mailing list