The Knowledgebase provides a database of answers to many Technical questions.

Linux issue "Bad file descriptor" or "Too many open files"

Fri Jun 21, 2019 4:15 pm

When you have large traffics, maybe you will encounter the issue "Too many open files (error code 24)". For the Linux system, you can try the following method to solve it:

1. Edit the file "/etc/sysctl.conf" and add the lines:

fs.file-max = 655350


2. Edit the file "/etc/security/limits.conf" and add the lines:

* soft nofile 655350
* hard nofile 655350


3. Restart the Linux system.