Skip to content

Instantly share code, notes, and snippets.

@kolunar
Created April 24, 2017 22:55
Show Gist options
  • Save kolunar/aa9d645717afe74add0b6d408cb3bde3 to your computer and use it in GitHub Desktop.
Save kolunar/aa9d645717afe74add0b6d408cb3bde3 to your computer and use it in GitHub Desktop.
Changing open file limit for all users on Ubuntu
First, check "$ ulimit -a".
Go to /etc/security/limits.conf and add the two lines described below:
* soft nofile 10240
* soft nproc 10240
Reboot system or add following line to the end of /etc/pam.d/common-session:
session required pam_limits.so
Finally, check "$ ulimit -a" again and see the difference.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment