I'm trying to increase open file limit in Ubuntu 8.04.4 LTS. Followed information posted in this question: How do I increase the open files limit for a non-root user?
- Added to
/etc/sysctl.conffollowing line:fs.file-max=500000 Added to
/etc/security/limits.conffollowing lines:* soft nofile 10000* hard nofile 10000- Added to
/etc/pam.d/common-session(My system do not have any other files prefixed with common-session at /etc/pam.d/) following line:session required pam_limits.so - Did system restart
But the value of open file limit is still same 1024:
# ulimit -n
1024
# cat /proc/{PID}/limits
Limit Soft Limit Hard Limit Units
Max open files 1024 1024 files
# cat /proc/sys/fs/file-max
500000
# sysctl fs.file-max
fs.file-max = 500000
What I'm doing wrong and how to increase open file limit?