debugging "Too many open files"

Martin v. Loewis martin at
Wed Sep 18 17:23:32 EDT 2002

Alex Polite <m2 at> writes:

> I'm getting the "Too many open files" error.

What "the" error? An exception? A message in the system log? An SMS on
your mobile phone?

> I've reset /proc/sys/fs/file-max to 100000 and the count in
> /proc/sys/fs/file-nr is nowhere close.
> I'm not sure that python is the root of the problem. Is there anyway
> to see which processes own the active file descriptors?

I recommend you list /proc/<pid of python program>/fd/


More information about the Python-list mailing list