[Zope-dev] file descriptors on Solaris

Andreas Jung Andreas Jung" <andreas@zope.com
Tue, 2 Oct 2001 11:57:05 -0400


There is always a hard limit of filedescriptors (based on the kernel
configuration). But usually you can change the number of descriptors
using "limit descriptors xxxx" under tcsh/csh. Under Bash I think you
must call "ulimit".

Andreas
----- Original Message -----
From: "John Ziniti" <jziniti@speakeasy.org>
To: <zope-dev@zope.org>
Sent: Tuesday, October 02, 2001 11:46
Subject: [Zope-dev] file descriptors on Solaris


> 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
>
>
>
>
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev@zope.org
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )
>