Re: Python threads and memory usage

2008-05-30 Thread Mike
On May 30, 9:42 am, Mike <[EMAIL PROTECTED]> wrote: > On May 30, 9:16 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > > > > > On Thu, 29 May 2008 12:01:30 -0700 (PDT), Mike <[EMAIL PROTECTED]> > > declaimed the following in comp.lang.python: > > > > I observed, that every thread reserved some me

Re: Python threads and memory usage

2008-05-30 Thread Mike
On May 30, 9:16 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Thu, 29 May 2008 12:01:30 -0700 (PDT), Mike <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > I observed, that every thread reserved some memory, and after exit > > thread doesn't freed it. When i leaved my

Python threads and memory usage

2008-05-29 Thread Mike
Hi, I'm writing client-server application in Python. It's monitoring system, where server listen and waits for TCP connections, and every connection takes own thread. Every thread puts data from clients to Queue and exits. Then there is one DB loader thread, which loads all data from Queue to MySQ

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

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. However, I have encountered the following error after I have started my 381st thread: --