Skip to content

Instantly share code, notes, and snippets.

@ernetas
Created March 30, 2014 12:14
Show Gist options
  • Save ernetas/9872013 to your computer and use it in GitHub Desktop.
Save ernetas/9872013 to your computer and use it in GitHub Desktop.
supervisor@backup:~$ sudo cat /proc/1765/limits
Limit Soft Limit Hard Limit Units
Max cpu time unlimited unlimited seconds
Max file size unlimited unlimited bytes
Max data size unlimited unlimited bytes
Max stack size 8388608 unlimited bytes
Max core file size 0 unlimited bytes
Max resident set unlimited unlimited bytes
Max processes 7758 7758 processes
Max open files 1024 1024 files
Max locked memory 65536 65536 bytes
Max address space unlimited unlimited bytes
Max file locks unlimited unlimited locks
Max pending signals 7758 7758 signals
Max msgqueue size 819200 819200 bytes
Max nice priority 0 0
Max realtime priority 0 0
Max realtime timeout unlimited unlimited us
supervisor@backup:~$
supervisor@backup:~$ cat /etc/security/limits.conf | grep nofile
# - nofile - max number of open files
* soft nofile 64000
* hard nofile 64000
supervisor@backup:~$
supervisor@backup:~$ cat /etc/pam.d/common-session* | grep limit
session required pam_limits.so
session required pam_limits.so
supervisor@backup:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment