Friday, June 1, 2012

Linux: Number of Open Files for Session

Query hard limit: ulimit -Hn
Query soft limit: ulimit -Sn
Set limit: ulimit -n <new limit>

You may or may not need to edit /etc/security/limits.conf before that

Note that there is also a separate system-wide setting in "/proc/sys/fs/file-max"

No comments:

Post a Comment