Re: threads and memory

2006-02-07 Thread Ivan Voras
Lee Leahu wrote: > However, I have encountered the following error after I have started my 381st > thread: This number (actually, ~380) is suspicious when seen with threads because it almost always means running out of process address space. As threads are part of a single process, and that pr

Re: threads and memory

2006-02-06 Thread Lee Leahu
Hi List, > > I am running into a problem where asyncore is through a filedescriptor > > error if I try to launch more that 1023 connections: > > > > Traceback (most recent call last): > > File "./test.py", line 46, in ? > > asyncore.loop() > > File "/us

Re: threads and memory

2006-02-06 Thread Fredrik Lundh
Lee Leahu wrote: > > Yes. You don't need one thread per connection: > > http://docs.python.org/lib/module-asyncore.html > > I am running into a problem where asyncore is through a filedescriptor > error if I try to launch more that 1023 connections: > > Tracebac

Re: threads and memory

2006-02-06 Thread Bryan Olson
Lee Leahu wrote: > I am trying to write a simple threaded application which will > simulate 1000 connections to a remote service in order to > stress test" that the remote service can handle that many > connections. That shouldn't be a problem on a modern OS, but there are still quite a few not

Re: threads and memory

2006-02-06 Thread Lee Leahu
Hi List, > >I am trying to write a simple threaded application which will simulate 1000 > >connections to a remote service in order to "stress test" that the remote > >service can handle that many connections. > [...] > >Is there a way to accomplish what I am trying to do, perhaps in a more > >

Re: threads and memory

2006-02-06 Thread Rene Pijlman
Lee Leahu: >I am trying to write a simple threaded application which will simulate 1000 >connections to a remote service in order to "stress test" that the remote >service can handle that many connections. [...] >Is there a way to accomplish what I am trying to do, perhaps in a more >memory-frie