[rabbitmq-discuss] BrokerUnreachableException on .NET client
Matthias Radestock
matthias at lshift.net
Wed Jun 10 18:26:59 BST 2009
Aaron,
Aaron Feng wrote:
> I noticed if I spin up around 500 threads and give it the following function:
>
> public static void DoWork() {
> try {
> var factory = new ConnectionFactory();
> var param = factory.Parameters;
> param.RequestedHeartbeat = 100;
> using (var conn = factory.CreateConnection(server)) {
> using (var ch = conn.CreateModel()) {
> for (int i = 0; i < times; i++) ch.BasicPublish(exchange,
> routingKey, null, data);
> }
> }
> }
> catch(Exception ex) {
> Console.WriteLine(ex.Message);
> }
> }
>
> Some of the threads would bomb with
> RabbitMQ.Client.Exceptions.BrokerUnreachableException: "None of the
> specified endpoints were reachable". I can reproduce this behaviour
> consistently with lots of threads. Is my test valid?
Does ToString on the BrokerUnreachableException provide any clues?
Is there anything noteworthy in the server logs?
Regards,
Matthias.
More information about the rabbitmq-discuss
mailing list