$ ps -ef | grep [service name]
root 789 1 0 Jun16 ? 00:05:46 /usr/bin/python -Es /usr/sbin/tuned -l -P
root 5078 10056 0 22:24 pts/0 00:00:00 grep --color=auto python
root 6629 6628 0 Jun21 ? 01:01:29 python3.4 /root/xxx-server/XxxServer.py production
root 27645 1 0 18:43 ? 00:00:00 /bin/sh /root/xxx-app-server-python/start.sh production
root 27647 27645 1 18:43 ? 00:04:09 python3.4 /root/xxx-app-server-python/XxxAppServer.py production
여기서 나온 process 번호를 proc 폴더에서 검색 후 fd 폴더에서 개수 확인
$ cd /proc/[process no]/fd
$ ls -l | wc -l
91


반응형