Page 1 of 1

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

PostPosted: Fri Jun 21, 2019 4:15 pm
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.