[Zope-dev] file descriptors on Solaris

John Ziniti jziniti@speakeasy.org
Tue, 02 Oct 2001 11:46:14 -0400


I am running into a problem where Zope is trying to open too many
file descriptors (256) in order to process a POST.

I'm not sure how to phrase this question, but my reading has suggested
that this limit may be set by the FILE struct in /usr/incldue/stdio.h.

Does anyone know if this is used in Python/Zope?

My first impression was that this problem would be easy to solve --
just up the number of FD's, but now, I'm not so sure.  Any
suggestions?

Here's a traceback -- but I don't think it's much help

Traceback (innermost last):
  File /u05/ilocal/opt/Zope-2.4.0-src/lib/python/ZPublisher/Publish.py, line 223, in publish_module
  File /u05/ilocal/opt/Zope-2.4.0-src/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /u05/ilocal/opt/Zope-2.4.0-src/lib/python/Zope/__init__.py, line 226, in zpublisher_exception_hook
    (Object: ApplicationDefaultPermissions)
  File /u05/ilocal/opt/Zope-2.4.0-src/lib/python/ZPublisher/Publish.py, line 136, in publish
  File /u05/ilocal/opt/Zope-2.4.0-src/lib/python/ZPublisher/HTTPRequest.py, line 405, in processInputs
  File /ilocal/lib/python2.1/cgi.py, line 517, in __init__
  File /ilocal/lib/python2.1/cgi.py, line 606, in read_multi
  File /ilocal/lib/python2.1/cgi.py, line 519, in __init__
  File /ilocal/lib/python2.1/cgi.py, line 616, in read_single
  File /ilocal/lib/python2.1/cgi.py, line 636, in read_lines
  File /ilocal/lib/python2.1/cgi.py, line 723, in make_file
  File /ilocal/opt/Zope-2.4.0-src/lib/python/tempfile.py, line 155, in TemporaryFile
OSError: [Errno 2] No such file or directory