Skip to content

Instantly share code, notes, and snippets.

@fduran
Created January 11, 2013 21:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fduran/4514042 to your computer and use it in GitHub Desktop.
Save fduran/4514042 to your computer and use it in GitHub Desktop.
Linux "Too many files open" error
# www.fduran.com
# Linux "Too many files open" error
# check current number of open files:
lsof |wc -l
# check maximum number of file descriptors
sysctl -a |grep file-max
# increment value: edit
vim /etc/sysctl.conf
# append: fs.file-max = 200000
# reload sysctl:
sysctl -p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment