First, check the current system limit for file descriptors:
cat /proc/sys/fs/file-max
If the setting is lower than 64000
, edit the /etc/sysctl.conf
file, and reset the fs.file-max
parameter:
fs.file-max = 64000
Then increase the maximum number of open files on the system by editing the /etc/security/limits.conf
configuration file. Add the following entry:
* - nofile 8192
Edit the /etc/pam.d/system-auth
, and add this entry:
session required /lib/security/$ISA/pam_limits.so
Reboot the machine to apply the changes.