<font face="arial" size="2"><p style="margin:0;padding:0;">Thanks Steve,</p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;">Unfortunately this is an intermittent bug AND it is (we think) occuring <span style="font-size: 10pt;">only over a 3G connection</span><span style="font-size: 10pt;"> on Android. We have ACRA running for logs but the app doesn't crash - just hangs - so ACRA doesn't kick in.</span></p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;"><span style="font-size: 10pt;">We also have a background consumer thread running on the device which still receives messages when the foreground thread hangs.</span></p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;"><span style="font-size: 10pt;">But, is there really no timeout in the java client that will at least fail rather than hang? There is, I believe, a timeout on the server so... what in theory would happen if the server closed the AMQP connection {inet_error,etimedout} and the client was connecting? In theory would this cause the client to hang?</span></p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;">thanks,</p>
<p style="margin:0;padding:0;">Matthew</p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;"><span style="font-size: 10pt;"> </span></p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;">-----Original Message-----<br />From: "Steve Powell" <steve@rabbitmq.com><br />Sent: Friday, August 24, 2012 10:10am<br />To: m.luchak@smartasking.com<br />Cc: "Discussions about RabbitMQ" <rabbitmq-discuss@lists.rabbitmq.com><br />Subject: Re: [rabbitmq-discuss] Intermittent Problem - 2.8.5 java client hangs on declare exchange<br /><br /></p>
<div id="SafeStyles1345817759">Hi Matthew,
<div>
<div>It is hard to debug this without some Java information. Can you take a</div>
<div>jstack dump of the JVM BEFORE you kill it and AFTER it hangs? This will</div>
<div>give us some idea of what threads are waiting for what.</div>
<div>It is hard to see how this could happen if the connection has been</div>
<div>closed by the server, though it is not clear if the ERROR REPORT you</div>
<div>give is dated/timed after the Java Client has hung for a bit, or happens</div>
<div>before and CAUSES the hang. Can you determine which from the time of the</div>
<div>log entry?</div>
</div>
<div>We will endeavour to help.<br />
<div>
<div style="word-wrap: break-word;"><span style="border-collapse: separate; color: #000000; font-family: Georgia; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;">
<div style="word-wrap: break-word;"><span style="border-collapse: separate; color: #000000; font-family: Georgia; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;">
<div style="word-wrap: break-word;">
<div>
<div style="word-wrap: break-word;">
<div>
<div style="font-family: Georgia; font-size: medium;">
<div><span style="font-size: 12pt;"><span style="font-size: 12px;">All (aka Steve Powell---</span><span style="font-style: normal; font-weight: normal; font-size: 11px;"><em>a happy bunny</em>)</span></span></div>
</div>
<div style="font-style: normal; font-weight: normal;"><span>
<div style="font-weight: normal; font-style: normal; font-family: Helvetica; font-size: 12px;"><em><span style="font-family: Georgia; font-size: 10pt;"><span style="font-size: 10px;">----------yet more definitions from the SPD----------</span></span></em></div>
</span></div>
</div>
</div>
<span style="font-style: normal; font-weight: normal; font-family: Helvetica; font-size: 12px;"><span style="font-style: normal; font-family: Georgia; font-size: 10pt;"><span style="font-size: 10px;"><strong>corrugate</strong> (</span></span><span style="font-family: Georgia; font-size: 10pt;"><span style="font-size: 10px;"><em>n.</em>) T.V. soap scandal.</span></span></span>
<div style="font-style: normal; font-family: Georgia; font-size: medium; font-weight: normal;"><span style="border-collapse: separate; color: #000000; font-family: Georgia; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"> </span><span style="border-collapse: separate; color: #000000; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="font-family: Georgia; font-weight: normal; font-style: normal; font-size: 10px;"><strong>olympic</strong></span><span style="font-family: Georgia; font-weight: normal; font-style: normal; font-size: 10px;"> (</span><span style="font-family: Georgia; font-weight: normal; font-size: 10px;"><em>n.</em>)</span><span style="font-family: Georgia; font-weight: normal; font-style: normal; font-size: 10px;"> A camp road-digger.</span></span></div>
<div style="font-style: normal; font-weight: normal; font-family: Georgia; font-size: medium;"><span style="border-collapse: separate; color: #000000; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="font-family: Georgia; font-style: normal; font-size: 10px;"><strong>jamboree</strong></span><span style="font-family: Georgia; font-weight: normal; font-style: normal; font-size: 10px;"> (</span><span style="font-family: Georgia; font-weight: normal; font-size: 10px;"><em>n.</em></span><span style="font-family: Georgia; font-weight: normal; font-style: normal; font-size: 10px;">) A conserve made from French cheese.</span></span></div>
</div>
</div>
</span></div>
</span></div>
</div>
<br />
<div>
<div>On 24 Aug 2012, at 14:20, <a href="mailto:m.luchak@smartasking.com">m.luchak@smartasking.com</a> wrote:</div>
<br />
<blockquote><span style="font-family: arial; font-size: 10pt;">
<div style="font-family: arial; font-size: 10pt; padding: 0px; margin: 0px;">Hi All,</div>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: arial; font-size: 10pt;"> </p>
<div style="font-family: arial; font-size: 10pt; padding: 0px; margin: 0px;">We have a very annoying intermittent bug where our java client hangs when declaring an exchange. <span style="font-size: small;">We couldn't find a timeout or wait in the channel class... Is there a way to set/get a session timeout?</span></div>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: arial; font-size: 10pt;"> </p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: arial; font-size: 10pt;"> </p>
<div style="font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 14px; padding: 0px; margin: 0px;"><span style="font-family: arial; font-size: 10pt;"> - No firewalls or load balancers</span></div>
<div style="font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 14px; padding: 0px; margin: 0px;"><span style="font-family: arial; font-size: 10pt;"> - Very low CPU and memory usage</span></div>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: arial; font-size: 10pt;"> </p>
<p style="margin:0;padding:0;margin: 0; padding: 0;"> </p>
<div style="padding: 0px; margin: 0px;"><span style="font-family: arial; font-size: 10pt;">=ERROR REPORT==== 24-Aug-2012::12:40:17 ===</span></div>
<div style="padding: 0px; margin: 0px;"><span style="font-family: arial; font-size: 10pt;">closing AMQP connection <0.22988.7> (XXXXXXXX:28335 -> XXXXXX:5672):</span></div>
<div style="padding: 0px; margin: 0px;"><span style="font-family: arial; font-size: 10pt;">{inet_error,etimedout}</span></div>
<p style="margin:0;padding:0;margin: 0; padding: 0;"> </p>
<p style="margin:0;padding:0;margin: 0; padding: 0;"> </p>
<div style="padding: 0px; margin: 0px;">RabbitMQ Status:</div>
<p style="margin:0;padding:0;margin: 0; padding: 0;"> </p>
<p style="margin:0;padding:0;margin: 0; padding: 0;"> </p>
<div style="padding: 0px; margin: 0px;">[{pid,9764},</div>
<div style="padding: 0px; margin: 0px;">{running_applications,</div>
<div style="padding: 0px; margin: 0px;">[{rabbitmq_management,"RabbitMQ Management Console","2.8.5"},</div>
<div style="padding: 0px; margin: 0px;">{rabbitmq_management_agent,"RabbitMQ Management Agent","2.8.5"},</div>
<div style="padding: 0px; margin: 0px;">{rabbitmq_stomp,"Embedded Rabbit Stomp Adapter","2.8.5"},</div>
<div style="padding: 0px; margin: 0px;">{rabbit,"RabbitMQ","2.8.5"},</div>
<div style="padding: 0px; margin: 0px;">{mnesia,"MNESIA CXC 138 12","4.4.17"},</div>
<div style="padding: 0px; margin: 0px;">{os_mon,"CPO CXC 138 46","2.2.5"},</div>
<div style="padding: 0px; margin: 0px;">{rabbitmq_mochiweb,"RabbitMQ Mochiweb Embedding","2.8.5"},</div>
<div style="padding: 0px; margin: 0px;">{webmachine,"webmachine","1.9.1-rmq2.8.5-git52e62bc"},</div>
<div style="padding: 0px; margin: 0px;">{mochiweb,"MochiMedia Web Server","2.3.1-rmq2.8.5-gitd541e9a"},</div>
<div style="padding: 0px; margin: 0px;">{inets,"INETS CXC 138 49","5.5.2"},</div>
<div style="padding: 0px; margin: 0px;">{xmerl,"XML parser","1.2.8"},</div>
<div style="padding: 0px; margin: 0px;">{sasl,"SASL CXC 138 11","2.1.9.3"},</div>
<div style="padding: 0px; margin: 0px;">{amqp_client,"RabbitMQ AMQP Client","2.8.5"},</div>
<div style="padding: 0px; margin: 0px;">{stdlib,"ERTS CXC 138 10","1.17.3"},</div>
<div style="padding: 0px; margin: 0px;">{kernel,"ERTS CXC 138 10","2.14.3"}]},</div>
<div style="padding: 0px; margin: 0px;">{os,{unix,linux}},</div>
<div style="padding: 0px; margin: 0px;">{erlang_version,</div>
<div style="padding: 0px; margin: 0px;">"Erlang R14B02 (erts-5.8.3) [source] [64-bit] [rq:1] [async-threads:30] [kernel-poll:true]\n"},</div>
<div style="padding: 0px; margin: 0px;">{memory,</div>
<div style="padding: 0px; margin: 0px;">[{total,41330968},</div>
<div style="padding: 0px; margin: 0px;">{processes,17077520},</div>
<div style="padding: 0px; margin: 0px;">{processes_used,16335960},</div>
<div style="padding: 0px; margin: 0px;">{system,24253448},</div>
<div style="padding: 0px; margin: 0px;">{atom,1537521},</div>
<div style="padding: 0px; margin: 0px;">{atom_used,1523741},</div>
<div style="padding: 0px; margin: 0px;">{binary,120088},</div>
<div style="padding: 0px; margin: 0px;">{code,17080343},</div>
<div style="padding: 0px; margin: 0px;">{ets,4172512}]},</div>
<div style="padding: 0px; margin: 0px;">{vm_memory_high_watermark,0.39999999935564245},</div>
<div style="padding: 0px; margin: 0px;">{vm_memory_limit,248309350},</div>
<div style="padding: 0px; margin: 0px;">{disk_free_limit,1000000000},</div>
<div style="padding: 0px; margin: 0px;">{disk_free,5325369344},</div>
<div style="padding: 0px; margin: 0px;">{file_descriptors,</div>
<div style="padding: 0px; margin: 0px;">[{total_limit,924},</div>
<div style="padding: 0px; margin: 0px;">{total_used,35},</div>
<div style="padding: 0px; margin: 0px;">{sockets_limit,829},</div>
<div style="padding: 0px; margin: 0px;">{sockets_used,15}]},</div>
<div style="padding: 0px; margin: 0px;">{processes,[{limit,1048576},{used,335}]},</div>
<div style="padding: 0px; margin: 0px;">{run_queue,0},</div>
<div style="padding: 0px; margin: 0px;">{uptime,1815593}]</div>
<p style="margin:0;padding:0;margin: 0; padding: 0;"><span style="font-family: arial; font-size: small;"> </span></p>
<p style="margin:0;padding:0;margin: 0; padding: 0;"> </p>
<div style="padding: 0px; margin: 0px;"><span style="font-family: arial; font-size: 10pt;">thanks,</span></div>
<p style="margin:0;padding:0;margin: 0; padding: 0;"> </p>
<div style="padding: 0px; margin: 0px;"><span style="font-family: arial; font-size: 10pt;">Matthew</span></div>
<p style="margin:0;padding:0;margin: 0; padding: 0;"> </p>
<p style="margin:0;padding:0;margin: 0; padding: 0;"> </p>
<div style="padding: 0px; margin: 0px;"><span style="font-family: arial; font-size: 10pt;"><br /></span></div>
<p style="margin:0;padding:0;margin: 0; padding: 0;"> </p>
<div style="padding: 0px; margin: 0px;"><span style="font-family: arial; font-size: 10pt;"><br /></span></div>
</span>_______________________________________________<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">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br /></blockquote>
</div>
</div>
</div></font>