[pypy-issue] [issue878] too many open files

Tobias Oberstein tracker at bugs.pypy.org
Mon Mar 12 14:13:11 CET 2012


Tobias Oberstein <tobias.oberstein at gmail.com> added the comment:

For people running into this issue, here is the recipe for Ubuntu:

1.
sudo vi /etc/pam.d/su

=> uncomment the line:

session    required   pam_limits.so

2.
sudo vi /etc/security/limits.conf

=> add the following 2 lines at the end of file:

*       soft  nofile   65535                                                     
*       hard  nofile   65535

3.
reboot.

4.
check:

pypy =>
>>>> import resource
>>>> resource.getrlimit(resource.RLIMIT_NOFILE)
(65535L, 65535L)

===

Caveat: This will set limit to 64k for _all_ users. i.e. don't do that on a
production box.

----------
nosy: +oberstet

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue878>
________________________________________


More information about the pypy-issue mailing list