<div dir="ltr">I'm using upstart to start an erlang web server.<br>I'm using limit nofile to increase the number of allowed file descriptors but when checking the limits I'm still seeing the default.<br>I'm getting errors for too many open file descriptors.<br>
<br>Am I doing something wrong?<br><br>When increasing the nofile in the /etc/security/limits.conf file, the errors goes away:<br>* soft nofile 30000<br>* hard nofile 30000<br><br>I'm checking the beam (the process that is running the erlang vm) with:<br>
pidof beam<br>cat /proc/<pid>/limits<br>...<br>Max open files 1024 4096 files<br>...<br><br>the upstart script:<br>--------------------------<br>limit nofile 20000 20000<br>
<br>start on (local-filesystems and net-device-up IFACE!=lo)<br>stop on runlevel [016]<br><br>export HOME=/var/lib/myapp<br><br><br>script<br> exec sudo -u myapp -i myapp start<br>end script<br><br>pre-stop script<br> exec sudo -u myapp -i myapp stop<br>
end script<br><br><br></div>