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

The Knowledgebase provides a database of answers to many Technical questions.
Post Reply
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

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

Post by FTP »

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.
Post Reply