Matthias,<br><br>Below is the ToString():<br><br>None of the specified endpoints were reachable<br>
Endpoints attempted:<br>
endpoint=amqp-0-8://<a href="http://10.12.0.190:5672/" target="_blank">10.12.0.190:5672</a>, attempts=1, outcome=The AMQP operation w<br>
as interrupted: AMQP close-reason, initiated by Library, code=0, text="End of st<br>
ream", classId=0, methodId=0, cause=System.IO.<div id=":30a" class="ii gt">EndOfStreamException: Unable to re<br>
ad beyond the end of the stream.<br>
at System.IO.__Error.EndOfFile()<br>
at System.IO.BinaryReader.ReadByte()<br>
at RabbitMQ.Client.Impl.Frame.ReadFrom(NetworkBinaryReader reader)<br>
at RabbitMQ.Client.Impl.SocketFrameHandler_0_9.ReadFrame()<br>
at RabbitMQ.Client.Impl.ConnectionBase.MainLoopIteration()<br>
at RabbitMQ.Client.Impl.ConnectionBase.MainLoop()<br>
Stack trace:<br>
at RabbitMQ.Client.ConnectionFactory.CreateConnection(Int32 maxRedirects, Amq<br>
pTcpEndpoint[] endpoints)<br>
at RabbitMQ.Client.ConnectionFactory.CreateConnection(AmqpTcpEndpoint[] endpo<br>
ints)<br>
at RabbitMQ.Client.ConnectionFactory.CreateConnection(String address)<br>
at RabbitTest.Program.DoWork() in C:\Development\RabbitTest\RabbitTest\Progra<br>
m.cs:line 65</div><br>I also looked in the rabbit.log, nothing interesting.<br><br>Any thoughts?<br><br>Aaron<br><br><div class="gmail_quote">On Wed, Jun 10, 2009 at 1:26 PM, Matthias Radestock <span dir="ltr"><<a href="mailto:matthias@lshift.net" target="_blank">matthias@lshift.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Aaron,<br>
<div><br>
Aaron Feng wrote:<br>
> I noticed if I spin up around 500 threads and give it the following function:<br>
><br>
> public static void DoWork() {<br>
> try {<br>
> var factory = new ConnectionFactory();<br>
> var param = factory.Parameters;<br>
> param.RequestedHeartbeat = 100;<br>
> using (var conn = factory.CreateConnection(server)) {<br>
> using (var ch = conn.CreateModel()) {<br>
> for (int i = 0; i < times; i++) ch.BasicPublish(exchange,<br>
> routingKey, null, data);<br>
> }<br>
> }<br>
> }<br>
> catch(Exception ex) {<br>
> Console.WriteLine(ex.Message);<br>
> }<br>
> }<br>
><br>
> Some of the threads would bomb with<br>
> RabbitMQ.Client.Exceptions.BrokerUnreachableException: "None of the<br>
> specified endpoints were reachable". I can reproduce this behaviour<br>
> consistently with lots of threads. Is my test valid?<br>
<br>
</div>Does ToString on the BrokerUnreachableException provide any clues?<br>
<br>
Is there anything noteworthy in the server logs?<br>
<br>
<br>
Regards,<br>
<font color="#888888"><br>
Matthias.<br>
</font></blockquote></div><br>