I am running Debian 6 and I am trying to increase the file descriptor limit but it does not want to work. This is what I have done:
I edited /etc/sysctl.conf by adding fs.file-max = 64000 at the end and applied the changes using sysctl -p.
I then edited /etc/security/limits.conf and added the following lines: * soft nofile 64000 and * hard nofile 64000.
Now when I execute ulimit -Hn and ulimit -Sn I still see 1024. I rebooted the server and I still get the same result. What have I failed to do?
/etc/security/limits.conf, just log out and log back in. – quanta Jul 27 '11 at 3:061024when executingulimit -Hnandulimit -Sn. Is this normal? If I changed the file descriptor hard and soft limit should it not give me the number I set it to? I am doing this because I run NGINX/PHP-FPM which is running low on descriptors. – Aco Jul 27 '11 at 4:17