maximum number of threads

Paul Sijben paul.sijben at xs4all.nl
Wed Jan 10 02:38:18 EST 2007


I have a server in Python 2.5 that generates a lot of threads. It is
running on a linux server (Fedora Core 6).

The server quickly runs out of threads.

I am seeing the following error.

  File "/home/sijben/ORCA/src/libmercury_mt.py", line 565, in __init__
    MercuryObject.__init__(self,mylink)
  File "/home/sijben/ORCA/src/libmercury_mt.py", line 223, in __init__
    self.start()
  File "/usr/local/lib/python2.5/threading.py", line 434, in start
    _start_new_thread(self.__bootstrap, ())
error: can't start new thread


Does anyone know what it going on here and how I can ensure that I have
all the threads I need?

Paul



More information about the Python-list mailing list