Wanted to simulate number of connections at a time

39 views
Skip to first unread message

Rambabu

unread,
Sep 21, 2015, 1:52:03 AM9/21/15
to rabbitmq-users
Hi,

I wanted to simulate number of connections at a time. Tried 5000 connections in separate threads but getting following exception.

java.util.concurrent.TimeoutException
        at com.rabbitmq.utility.BlockingCell.get(BlockingCell.java:77)
        at com.rabbitmq.utility.BlockingCell.uninterruptibleGet(BlockingCell.java:111)
        at com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:37)
        at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:367)
        at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:293)
        at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:621)
        at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:648)
        at standalone.getChannel(standalone.java:34)
        at standalone$ProducerThread.run(standalone.java:244)


Thanks

Giuseppe Privitera

unread,
Sep 21, 2015, 4:32:27 AM9/21/15
to rabbitm...@googlegroups.com
Hi Rambadu,

please, could you post the rabbitmq log? Make sure you have enough file descriptors. Try “ulimit -n” command on your server.

Kind regards,
Giuseppe

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael Klishin

unread,
Sep 21, 2015, 4:42:53 AM9/21/15
to rabbitm...@googlegroups.com
> I wanted to simulate number of connections at a time. Tried 5000 
> connections in separate threads but getting following exception.

On Linux and OS X, default system limits are not sufficient to have 5000 concurrent connections.

See http://www.rabbitmq.com/networking.html
--
MK

Staff Software Engineer, Pivotal/RabbitMQ


Reply all
Reply to author
Forward
0 new messages