bash:fork:Resource temporarily unavailable

时间:2026-02-14 23:25:35

1、[root@server]# echo -ne "* soft nofile 102400* hard nofile 102400* soft noproc 10240* hard noproc 10240" >>/etc/security/limits.conf

2、使用ssh再次登录就可以生效

3、注1:统计打开进程数量

# ps -ef |wc -c

4、注2:统计进程打开文件的句柄数量

# lsof -n | awk '{print $2}'| sort | uniq -c | sort -nr | grep  过滤条件

其中第一列是打开的句柄数,第二列是进程ID。

5、注3:统计线程数

# pstree -p | wc -l

© 2026 海能知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com