ubuntu 12.04
I have change the setting:
/etc/security/limits.conf
* soft nofile 65000
* hard nofile 65000
but cat /proc/{PID}/limits:
Limit Soft Limit Hard Limit Units
Max open files 1024 4096 files
I found the problem. Upstart has a bug that causes it to ignore limits set in /etc/security/limits.conf. These links describe the bug and a workaround.
- https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/938669
- http://bryanmarty.com/blog/2012/02/10/setting-nofile-limit-upstart/
- https://stackoverflow.com/questions/19995855/increase-max-open-files-for-ubuntu-upstart-initctl
Now the question is, how to set a global nofile limit because i don't want to set nofile limit in every upstart script which i need.
Thanks.