[root@dev3-phoenix-java-6.87 ~]#lsof -p 25328
如果提示 -bash: lsof: command not found,则需要先安装lsof
[root@dev3-phoenix-java-6.87 ~]#yum install lsof
再执行第一条命令如下:
[root@dev3-phoenix-java-6.87 ~]#lsof -p 25328|wc -l
[root@dev3-phoenix-java-6.87 ~]#lsof -u tomcat
[root@dev3-phoenix-java-6.87 ~]#lsof -u tomcat|wc -l
[root@dev3-phoenix-java-6.87 ~]#ulimit -a