limit nofile has no effect?
pablo platt
pablo.platt at gmail.com
Fri May 20 16:48:59 UTC 2011
I'm using upstart to start an erlang web server.
I'm using limit nofile to increase the number of allowed file descriptors
but when checking the limits I'm still seeing the default.
I'm getting errors for too many open file descriptors.
Am I doing something wrong?
When increasing the nofile in the /etc/security/limits.conf file, the errors
goes away:
* soft nofile 30000
* hard nofile 30000
I'm checking the beam (the process that is running the erlang vm) with:
pidof beam
cat /proc/<pid>/limits
...
Max open files 1024 4096 files
...
the upstart script:
--------------------------
limit nofile 20000 20000
start on (local-filesystems and net-device-up IFACE!=lo)
stop on runlevel [016]
export HOME=/var/lib/myapp
script
exec sudo -u myapp -i myapp start
end script
pre-stop script
exec sudo -u myapp -i myapp stop
end script
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/upstart-devel/attachments/20110520/77c858f9/attachment.html>
More information about the upstart-devel
mailing list