On 11/1/11 1:25 AM, Jason Grout wrote:
exceptions.ValueError: filedescriptor out of range in select()
2011-10-31 23:00:45-0700 [-] Malformed file descriptor found. Preening
lists.
2011-10-31 23:00:45-0700 [-] bad descriptor <HTTPChannel #156724 on 8888>
To help diagnose this, it appears that select() has its own internal
limit that is *not* affected by the number of open files set in ulimit.
Using this code: http://twistedmatrix.com/trac/ticket/816 in order to
determine this internal select() limit, I get a limit of 1024 file
descriptors. And, surprise, surprise, lsof of the sagenb.org process
shows that there are around 1024 open file handles.
http://daniel.haxx.se/docs/poll-vs-select.html seems to indicate that
you can't redefine this limit in Linux.
I restarted sagenb.org after still getting lots of these errors this
morning. The number of open file descriptors went down drastically:
$ ls /proc/5847/fd/ | wc
63 63 179
and things seem to be better now.
Jason
--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org