java服务too many open files

1.文件句柄查询
查询此操作用户支持文件句柄数量 ulimit -n
查询操作系统支持文件句柄数量 ulimit -a
2.现在使用文件句柄
lsof -n| wc -l   文件句柄
lost -n -i | wc -l 网络相关句柄
netstat -anlp | wc -l 网络连接数
lsof -n | awk '{print $2}' | sort | uniq -c | sort -nr|head  各进程占用句柄排行

猜你喜欢

转载自blog.csdn.net/u012914981/article/details/53405712