[rabbitmq-discuss] BrokerUnreachableException on .NET client
Aaron Feng
aaron.feng at gmail.com
Wed Jun 10 18:48:25 BST 2009
Matthias,
Below is the ToString():
None of the specified endpoints were reachable
Endpoints attempted:
endpoint=amqp-0-8://10.12.0.190:5672, attempts=1, outcome=The AMQP
operation w
as interrupted: AMQP close-reason, initiated by Library, code=0, text="End
of st
ream", classId=0, methodId=0, cause=System.IO.EndOfStreamException: Unable
to re
ad beyond the end of the stream.
at System.IO.__Error.EndOfFile()
at System.IO.BinaryReader.ReadByte()
at RabbitMQ.Client.Impl.Frame.ReadFrom(NetworkBinaryReader reader)
at RabbitMQ.Client.Impl.SocketFrameHandler_0_9.ReadFrame()
at RabbitMQ.Client.Impl.ConnectionBase.MainLoopIteration()
at RabbitMQ.Client.Impl.ConnectionBase.MainLoop()
Stack trace:
at RabbitMQ.Client.ConnectionFactory.CreateConnection(Int32 maxRedirects,
Amq
pTcpEndpoint[] endpoints)
at RabbitMQ.Client.ConnectionFactory.CreateConnection(AmqpTcpEndpoint[]
endpo
ints)
at RabbitMQ.Client.ConnectionFactory.CreateConnection(String address)
at RabbitTest.Program.DoWork() in
C:\Development\RabbitTest\RabbitTest\Progra
m.cs:line 65
I also looked in the rabbit.log, nothing interesting.
Any thoughts?
Aaron
On Wed, Jun 10, 2009 at 1:26 PM, Matthias Radestock <matthias at lshift.net>wrote:
> 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20090610/83dc181c/attachment.htm
More information about the rabbitmq-discuss
mailing list