[rabbitmq-discuss] Intermittent Problem - 2.8.5 java client hangs on declare exchange

m.luchak at smartasking.com m.luchak at smartasking.com
Fri Aug 24 15:44:07 BST 2012

Thanks Steve,
Unfortunately this is an intermittent bug AND it is (we think) occuring only over a 3G connection on Android.  We have ACRA running for logs but the app doesn't crash - just hangs - so ACRA doesn't kick in.
We also have a background consumer thread running on the device which  still receives messages when the foreground thread hangs.
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?
-----Original Message-----
From: "Steve Powell" <steve at rabbitmq.com>
Sent: Friday, August 24, 2012 10:10am
To: m.luchak at smartasking.com
Cc: "Discussions about RabbitMQ" <rabbitmq-discuss at lists.rabbitmq.com>
Subject: Re: [rabbitmq-discuss] Intermittent Problem - 2.8.5 java client hangs on declare exchange

Hi Matthew,

It is hard to debug this without some Java information. Can you take a
jstack dump of the JVM BEFORE you kill it and AFTER it hangs? This will
give us some idea of what threads are waiting for what.
It is hard to see how this could happen if the connection has been
closed by the server, though it is not clear if the ERROR REPORT you
give is dated/timed after the Java Client has hung for a bit, or happens
before and CAUSES the hang. Can you determine which from the time of the
log entry?
We will endeavour to help.

All (aka Steve Powell---a happy bunny)

----------yet more definitions from the SPD----------corrugate (n.) T.V. soap scandal.
 olympic (n.) A camp road-digger.
jamboree (n.) A conserve made from French cheese.

On 24 Aug 2012, at 14:20, [mailto:m.luchak at smartasking.com] m.luchak at smartasking.com wrote:

Hi All,
We have a very annoying intermittent bug where our java client hangs when declaring an exchange.  We couldn't find a timeout or wait in the channel class... Is there a way to set/get a session timeout?
 - No firewalls or load balancers
 - Very low CPU and memory usage
=ERROR REPORT==== 24-Aug-2012::12:40:17 ===
closing AMQP connection <0.22988.7> (XXXXXXXX:28335 -> XXXXXX:5672):
RabbitMQ Status:
[{rabbitmq_management,"RabbitMQ Management Console","2.8.5"},
{rabbitmq_management_agent,"RabbitMQ Management Agent","2.8.5"},
{rabbitmq_stomp,"Embedded Rabbit Stomp Adapter","2.8.5"},
{mnesia,"MNESIA  CXC 138 12","4.4.17"},
{os_mon,"CPO  CXC 138 46","2.2.5"},
{rabbitmq_mochiweb,"RabbitMQ Mochiweb Embedding","2.8.5"},
{mochiweb,"MochiMedia Web Server","2.3.1-rmq2.8.5-gitd541e9a"},
{inets,"INETS  CXC 138 49","5.5.2"},
{xmerl,"XML parser","1.2.8"},
{sasl,"SASL  CXC 138 11",""},
{amqp_client,"RabbitMQ AMQP Client","2.8.5"},
{stdlib,"ERTS  CXC 138 10","1.17.3"},
{kernel,"ERTS  CXC 138 10","2.14.3"}]},
"Erlang R14B02 (erts-5.8.3) [source] [64-bit] [rq:1] [async-threads:30] [kernel-poll:true]\n"},


rabbitmq-discuss mailing list
[mailto:rabbitmq-discuss at lists.rabbitmq.com] rabbitmq-discuss at lists.rabbitmq.com
[https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss] https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120824/d084856d/attachment.htm>

More information about the rabbitmq-discuss mailing list