Quick Answer: How Do I Increase Max File Descriptors in Linux?
Contents

Why is there a limit on file descriptors?

The upshot is that increasing the number of allowed open files across the system adds both time and space overhead for every process in the system even if they can’t make use of those descriptors based on the api they are using. There are also aggregate system limits as well for the number of open files allowed.

How do I increase open limit?

To Increase the File Descriptor Limit (Linux)

  1. Display the current hard limit of your machine. …
  2. Edit the /etc/security/limits.conf and add the lines: * soft nofile 1024 * hard nofile 65535.
  3. Edit the /etc/pam.d/login by adding the line: session required /lib/security/pam_limits.so.
James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest