How Do I Change File Descriptor Limit in Linux?
Contents How Do I Change the Open Limit in Linux? to Increase the File Descriptor Limit (Linux) Display the Current Hard Limit of Your Machine. … Edit the...
Contents
How do I change the open limit in Linux?
To Increase the File Descriptor Limit (Linux)
- Display the current hard limit of your machine. …
- Edit the /etc/security/limits.conf and add the lines: * soft nofile 1024 * hard nofile 65535.
- Edit the /etc/pam.d/login by adding the line: session required /lib/security/pam_limits.so.
Must Read
Why is there a file descriptor limit?
A Too many open files error happens when a process needs to open more files than the operating system allows. This number is controlled by the maximum number of file descriptors the process has. If you experience such an issue, you can increase the operating system file descriptor limit.