[rabbitmq-discuss] rabbitmq client timeouts, slow responses

tsduncan terrysduncan at gmail.com
Tue Oct 15 22:13:13 BST 2013

I have a rabbit configuration with about 50-60 rabbitmq clients. Some connect
with python libraries and others with Java. After some time, new connections
seem to take longer to process and the Java clients time out after 10

com.rabbitmq.client.ShutdownSignalException: connection error; reason:
java.net.SocketTimeoutException: Timeout during Connection negotiation

There are two issues I'd like to understand: 
1. why the server is taking so long to respond causing > 10 second responses
2. how to extend the java client timeout so they will wait longer than 10
seconds. I cannot seem to find the right client side control that will
extend the timeout beyond 10 seconds.

Here is some information on the client:
Client Properties  {product=RabbitMQ, information=Licensed under the MPL.
See http://www.rabbitmq.com/, platform=Java,
capabilities={exchange_exchange_bindings=true, consumer_cancel_notify=true,
basic.nack=true, publisher_confirms=true}, copyright=Copyright (C) 2007-2013
VMware, Inc., version=3.1.0}

mqConnectionFactory.getConnectionTimeout() = 0
mqConnectionFactory.getSocketFactory().createSocket().getSoTimeout() = 0
mqConnectionFactory.getRequestedHeartbeat = 60

For the server side, I see the following in the logs for the client timing

=INFO REPORT==== 15-Oct-2013::13:47:19 ===
accepted TCP connection on [::]:5672 from

=INFO REPORT==== 15-Oct-2013::13:47:19 ===
starting TCP connection <0.19149.1003> from

=WARNING REPORT==== 15-Oct-2013::13:47:19 ===
exception on TCP connection <0.19149.1003> from

I will attach the full rabbit and sasl.log files.

clearbay at novamgmt12:/var/log/rabbitmq$ sudo rabbitmqctl status
Status of node rabbit at novamgmt12 ...
     [{rabbitmq_management,"RabbitMQ Management Console","0.0.0"},
      {rabbitmq_management_agent,"RabbitMQ Management Agent","0.0.0"},
      {amqp_client,"RabbitMQ AMQP Client","0.0.0"},
      {os_mon,"CPO  CXC 138 46","2.2.7"},
      {sasl,"SASL  CXC 138 11","2.1.10"},
      {rabbitmq_mochiweb,"RabbitMQ Mochiweb Embedding","0.0.0"},
      {mochiweb,"MochiMedia Web Server","1.3-rmq0.0.0-git"},
      {inets,"INETS  CXC 138 49","5.7.1"},
      {mnesia,"MNESIA  CXC 138 12","4.5"},
      {stdlib,"ERTS  CXC 138 10","1.17.5"},
      {kernel,"ERTS  CXC 138 10","2.14.5"}]},
     "Erlang R14B04 (erts-5.8.5) [source] [64-bit] [smp:32:32] [rq:32]
[async-threads:30] [kernel-poll:true]\n"},

View this message in context: http://rabbitmq.1065348.n5.nabble.com/rabbitmq-client-timeouts-slow-responses-tp30510.html
Sent from the RabbitMQ mailing list archive at Nabble.com.

More information about the rabbitmq-discuss mailing list