Modify File Descriptor Limit on Linux
System-wide File Descriptor Limit
-
Get current value:
sysctl fs.file-max
-
modify max fd limit:
sysctl -w fs.file-max=10000
User File Descriptor Limit
-
Get current value:
ulimit -n
-
modify max fd limit:
ulimit -n 10000
-
use
ulimit -a
to print all limits of a user, such as fd, processes, etc.
Based on http://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/
Ref:
http://unix.stackexchange.com/questions/29577/ulimit-difference-between-hard-and-soft-limits
http://ss64.com/bash/ulimit.html
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。