Linux open files limit

System-wide file descriptors limits:

View:
cat /proc/sys/fs/file-max

Set:
sysctl -w fs.file-max=100000

Set persistently:
vi /etc/sysctl.conf
fs.file-max = 100000
then run sysctl -p

User level file descriptors limits:

View:
su - httpd
$ ulimit -Hn
$ ulimit -Sn

Set:
vi /etc/security/limits.conf
httpd soft nofile 4096
httpd hard nofile 10240

You can leave a response, or trackback from your own site.

Leave a Reply