Too many open files Solution

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

Many people have been facing problems in Linux systems. “Too many open files…..”

How do we fix this problem under CentOS / RHEL / Fedora Linux or UNIX like operating systems?

To see the hard and soft values, issue the command as follows:
ulimit -Hn
ulimit -Sn

Increase Open FD Limit at Linux OS Level
# vi /etc/sysctl.conf

Append / modify the following line:
fs.file-max = 70000

Save and close the file. Edit /etc/security/limits.conf, enter:
# vi /etc/security/limits.conf

Set soft and hard limit for all users as follows:
root soft nofile 10000
root hard nofile 30000

Save and close the file. Finally, reload the changes with sysctl command:
# sysctl -p

Reload and check with:
$ ulimit -Hn
$ ulimit -Sn

Read More