Hi,<br><br>I&#39;ve ran tcpdump on the consumer machine when the problem is occurring. The Java process running the consumer has definitely gone. list_connections on the broker shows there is still a connection:<br><br>The output of tcpdump:<br>
<br>11:55:15.277607 IP 192.168.2.64.59061 &gt; ec2-79-125-24-245.eu-west-1.compute.amazonaws.com.amqp: Flags [FP.], seq 1777345129:1777345331, ack 955208465, win 33304, options [nop,nop,TS val 609354052 ecr 6381321], length 202<br>
11:55:30.103223 IP 192.168.2.64.59048 &gt; ec2-79-125-24-245.eu-west-1.compute.amazonaws.com.amqp: Flags [FP.], seq 3156241994:3156242015, ack 938385998, win 33304, options [nop,nop,TS val 609354200 ecr 6382341], length 21<br>
11:56:19.384882 IP 192.168.2.64.59061 &gt; ec2-79-125-24-245.eu-west-1.compute.amazonaws.com.amqp: Flags [FP.], seq 0:202, ack 1, win 33304, options [nop,nop,TS val 609354692 ecr 6381321], length 202<br>11:56:34.208833 IP 192.168.2.64.59048 &gt; ec2-79-125-24-245.eu-west-1.compute.amazonaws.com.amqp: Flags [FP.], seq 0:21, ack 1, win 33304, options [nop,nop,TS val 609354840 ecr 6382341], length 21<br>
11:57:23.489908 IP 192.168.2.64.59061 &gt; ec2-79-125-24-245.eu-west-1.compute.amazonaws.com.amqp: Flags [FP.], seq 0:202, ack 1, win 33304, options [nop,nop,TS val 609355332 ecr 6381321], length 202<br>11:57:38.313950 IP 192.168.2.64.59048 &gt; ec2-79-125-24-245.eu-west-1.compute.amazonaws.com.amqp: Flags [FP.], seq 0:21, ack 1, win 33304, options [nop,nop,TS val 609355480 ecr 6382341], length 21<br>
11:58:27.594809 IP 192.168.2.64.59061 &gt; ec2-79-125-24-245.eu-west-1.compute.amazonaws.com.amqp: Flags [FP.], seq 0:202, ack 1, win 33304, options [nop,nop,TS val 609355972 ecr 6381321], length 202<br>11:58:42.417220 IP 192.168.2.64.59048 &gt; ec2-79-125-24-245.eu-west-1.compute.amazonaws.com.amqp: Flags [FP.], seq 0:21, ack 1, win 33304, options [nop,nop,TS val 609356120 ecr 6382341], length 21<br>
11:59:31.693171 IP 192.168.2.64.59061 &gt; ec2-79-125-24-245.eu-west-1.compute.amazonaws.com.amqp: Flags [FP.], seq 0:202, ack 1, win 33304, options [nop,nop,TS val 609356612 ecr 6381321], length 202<br>11:59:46.516762 IP 192.168.2.64.59048 &gt; ec2-79-125-24-245.eu-west-1.compute.amazonaws.com.amqp: Flags [FP.], seq 0:21, ack 1, win 33304, options [nop,nop,TS val 609356760 ecr 6382341], length 21<br>
12:00:35.791504 IP 192.168.2.64.59061 &gt; ec2-79-125-24-245.eu-west-1.compute.amazonaws.com.amqp: Flags [R.], seq 203, ack 1, win 33304, length 0<br>12:00:50.614290 IP 192.168.2.64.59048 &gt; ec2-79-125-24-245.eu-west-1.compute.amazonaws.com.amqp: Flags [FP.], seq 0:21, ack 1, win 33304, options [nop,nop,TS val 609357400 ecr 6382341], length 21<br>
12:01:54.714736 IP 192.168.2.64.59048 &gt; ec2-79-125-24-245.eu-west-1.compute.amazonaws.com.amqp: Flags [R.], seq 22, ack 1, win 33304, length 0<br>12:20:38.475816 IP 192.168.2.56.51686 &gt; ec2-79-125-24-245.eu-west-1.compute.amazonaws.com.amqp: Flags [P.], seq 1037575082:1037575118, ack 26733943, win 65535, options [nop,nop,TS val 115719776 ecr 11565352], length 36<br>
12:20:38.475824 IP 192.168.2.56.51686 &gt; ec2-79-125-24-245.eu-west-1.compute.amazonaws.com.amqp: Flags [P.], seq 36:252, ack 1, win 65535, options [nop,nop,TS val 115719776 ecr 11565352], length 216<br>12:20:38.476098 IP 192.168.2.56.51686 &gt; ec2-79-125-24-245.eu-west-1.compute.amazonaws.com.amqp: Flags [P.], seq 252:288, ack 1, win 65535, options [nop,nop,TS val 115719776 ecr 11565352], length 36<br>
12:20:38.476112 IP 192.168.2.56.51686 &gt; ec2-79-125-24-245.eu-west-1.compute.amazonaws.com.amqp: Flags [P.], seq 288:543, ack 1, win 65535, options [nop,nop,TS val 115719776 ecr 11565352], length 255<br>12:20:38.494336 IP 192.168.2.56.51683 &gt; ec2-79-125-24-245.eu-west-1.compute.amazonaws.com.amqp: Flags [.], ack 14626648, win 65535, options [nop,nop,TS val 115719776 ecr 14886791], length 0<br>
12:20:38.494473 IP 192.168.2.56.51683 &gt; ec2-79-125-24-245.eu-west-1.compute.amazonaws.com.amqp: Flags [.], ack 332, win 65535, options [nop,nop,TS val 115719776 ecr 14886791], length 0<br>12:20:38.597240 IP 192.168.2.56.51683 &gt; ec2-79-125-24-245.eu-west-1.compute.amazonaws.com.amqp: Flags [P.], seq 0:21, ack 332, win 65535, options [nop,nop,TS val 115719777 ecr 14886791], length 21<br>
12:20:38.665082 IP 192.168.2.56.51683 &gt; ec2-79-125-24-245.eu-west-1.compute.amazonaws.com.amqp: Flags [P.], seq 21:42, ack 332, win 65535, options [nop,nop,TS val 115719777 ecr 14886911], length 21<br>12:22:11.371665 IP 192.168.2.56.51686 &gt; ec2-79-125-24-245.eu-west-1.compute.amazonaws.com.amqp: Flags [P.], seq 543:579, ack 1, win 65535, options [nop,nop,TS val 115720704 ecr 14886791], length 36<br>
12:22:11.371673 IP 192.168.2.56.51686 &gt; ec2-79-125-24-245.eu-west-1.compute.amazonaws.com.amqp: Flags [P.], seq 579:834, ack 1, win 65535, options [nop,nop,TS val 115720704 ecr 14886791], length 255<br>12:22:11.388416 IP 192.168.2.56.51683 &gt; ec2-79-125-24-245.eu-west-1.compute.amazonaws.com.amqp: Flags [.], ack 663, win 65535, options [nop,nop,TS val 115720704 ecr 14979686], length 0<br>
12:22:11.486539 IP 192.168.2.56.51683 &gt; ec2-79-125-24-245.eu-west-1.compute.amazonaws.com.amqp: Flags [P.], seq 42:63, ack 663, win 65535, options [nop,nop,TS val 115720705 ecr 14979686], length 21<br><br>The consumer was shutdown at approx 11.50. More than an hour later I am still seeing the connection on the broker.<br>
<br>Thanks,<br>Michael <br><br><br><br><br><br><br><br><div class="gmail_quote">On Sat, Sep 18, 2010 at 11:34 PM, Matthew Sackman <span dir="ltr">&lt;<a href="mailto:matthew@rabbitmq.com">matthew@rabbitmq.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On Thu, Sep 16, 2010 at 09:01:17AM +0100, Michael Burns wrote:<br>
&gt; I&#39;ve noticed sometimes that there are extra connections hanging about on the<br>
&gt; RabbitMQ broker (using rabbitmqctl �list_connections).<br>
&gt; It&#39;s possible sometimes in our consumers that we are not always closing the<br>
&gt; connection cleanly (sometimes people are simply killing their app rather<br>
&gt; than shutting down cleanly).<br>
&gt;<br>
&gt; Could this somehow explain why we experience these delays?<br>
<br>
</div>Yes. If the TCP socket is still alive then Rabbit will not believe the<br>
connection has died, and so will not make unacknowledged messages<br>
available to other consumers.<br>
<br>
It would seem that this is your problem. To ensure that the connection<br>
is promptly detected to be detached, you could either turn on AMQP<br>
heartbeats or TCP KeepAlive. Either should suffice.<br>
<font color="#888888"><br>
Matthew<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</div></div></blockquote></div><br>