Created
February 25, 2016 20:21
-
-
Save gburd/9e285bc6ccddb420fef6 to your computer and use it in GitHub Desktop.
ulimit file descriptors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
su USER --shell /bin/bash --command "ulimit -n" | |
You need to edit /etc/pam.d/common-session* and add the following line to the end: | |
session required pam_limits.so | |
# cat /etc/security/limits.d/90-nproc.conf | |
* soft nproc 8192 | |
root soft nproc unlimited | |
* soft nofile 102400 | |
* hard nofile 102400 | |
https://gist.github.com/ekillaby/5880958 | |
https://singztechmusings.wordpress.com/2011/07/11/ulimit-how-to-permanently-set-kernel-limits-in-linux/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment