I'm having trouble with increasing the open-files ulimit (ulimit -n) for a particular process on a Debian 6 server.
AFAIK I've done everything to change the servers hard and soft limits in this case, (ulimit -n shows 200000), but when I check the /proc/<process_id>/limits file it's still showing the old limits:
Limit Soft Limit Hard Limit Units Max open files 1024 4096 files The steps that I have already taken to permanently increase the ulimits are:
Added to /etc/profile:
# set ulimit n permanetly ulimit -n 200000 Added to /etc/security/limits.conf:
* soft nofile 200000 * hard nofile 200000 Uncommented this lime in /etc/pam.d/su
session required pam_limits.so What am I missing? Thank you!
Other (relevant?) info:
- The process is started in a
init.dscript withstart-stop-daemon - The
/etc/security/limits.d/directory is empty
su, so if nothing runssuon the way to invoking the process you're interested in, it likely won't be looked at. But the script in/etc/init.dis going to run as root, so you can runulimitthere and raise it to anything.suor over SSH)? Settings in/etc/security/limits.confare applied when you log in, to all processes that you'll execute in that session.start-stop-daemondoesn't use PAM, but does simplechuidif requested, sopam_limitsandlimits.confdoesn't apply for the started daemon.