最近在Linux跑任务时,发现了几个僵尸进程,研究了下,可以采用以下方式进行Kill进程 :
xx@yy:~$ ps axo stat,ppid,pid,comm | grep -w defunct Z 6041 6046 Xvfb <defunct> Z 6097 6109 Xvfb <defunct> xx@yy:~$ kill -9 6041
参考:
http://xmodulo.com/2012/06/how-to-find-and-kill-zombie-processes.html
Mark