Reaching out to others! Free & Open Source Software, Kannada, L10n, L18n Data Science, Cloud Computing & more…

QuickFix: Too many open files

linux, QuickFix, Technical | 0 comments

Are you troubled with “too many open files” error on your server?  Unable to run the services?

warning: cannot open : Too many open files

Here are few fixes which you can use to get the issue resolved.

  • Making sure /proc/sys/fs/file-max was big enough
  • Adding “fs.file-max = 2048″ to /etc/sysctl.conf
  • Adding “* – nofile 2048″ to /etc/security/limits.conf
  • Adding “session required pam_limits.so” to /etc/pam.d/login and /etc/pam.d/sshd
  • Changing the limit using “ulimit -n 65536″ as root
  • Rebooting the machine several times

If you want this issue to be resolved across the reboots, 3rd option is the best solution

  • Adding “* – nofile 2048″ to /etc/security/limits.conf

Related Articles

Related