Skip to content

Instantly share code, notes, and snippets.

@gburd
Created February 25, 2016 20:21
Show Gist options
  • Save gburd/9e285bc6ccddb420fef6 to your computer and use it in GitHub Desktop.
Save gburd/9e285bc6ccddb420fef6 to your computer and use it in GitHub Desktop.
ulimit file descriptors
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