先找到進程的pid
然后:
lsof -p [pid] | wc -l
或者
ls /proc/[pid]/fd | wc -l
查看系統總共使用中的文件描述符數量:
lsof | wc -l
references:
http://www.cyberciti.biz/tips/linux-procfs-file-descriptors.html
先找到進程的pid
然后:
lsof -p [pid] | wc -l
或者
ls /proc/[pid]/fd | wc -l
查看系統總共使用中的文件描述符數量:
lsof | wc -l
references:
http://www.cyberciti.biz/tips/linux-procfs-file-descriptors.html
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。