<div>Hey</div><div><br></div><div>All your tests run just fine on my machine (Win7 64)</div><div>CanCreateConnectionsMultiThreaded:&nbsp;Elapsed seconds: 2,9939693<br></div><div>CanCreateConnectionsMultiThreadedWithLock:&nbsp;Elapsed seconds: 4,3135879<br></div><div><br></div><div>Two difference here:</div><div>- im connecting to remote RabbitMQ running on Debian (not localhost)</div><div>- my client\server version is 3.0.2</div><div><br></div><div>Here are few things to consider.</div><div>1) You are connecting to localhost. Each Rabbit connection opens 3 sockets (2 for heartbeats). With 100 connections, its minimum 300 + 300 sockets trying to open at the same time. Maybe your Win host cant handle it ?</div><div>2) Why are you trying to open 100 connection from one machine anyway ? Its real wasting of resources. Do you know, you can run multiple independent Rabbit channels on single connection ?</div><div><br></div><div>Michal</div><br>On Thursday, April 18, 2013 1:37:40 PM UTC+2, Chris Haines wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Hi All,<div><br></div><div>I have attached a .cs Nunit test fixture to demonstrate a problem I am having with the ConnectionFactory. If I create 100 connections in a for loop single threaded then I can create them all in about 2 seconds. If I create them via a number of threads, in my test I am using 100 threads to create a connection on each, then I get a lot of timeout exceptions (my test bails out after 60 seconds). I have tried sharing an instance of the ConnectionFactory between all threads and also giving each thread its own instance but they both have the same result. I have also tried locking around the call to CreateConnection but that also didn't help.&nbsp;</div><div><br></div><div>I find this&nbsp;behavior&nbsp;to be very strange. Has anyone else had similar problems?</div><div><br></div><div>Cheers,</div><div>Chris</div></blockquote>