發現production環境上有一個zombie,如何殺掉呢?
top - 13:13:38 up 23 days, 19:49, 1 user, load average: 2.58, 3.43, 3.75
Tasks: 1527 total, 3 running, 1523 sleeping, 0 stopped, 1 zombie
[oracle@oracle02 ~]$ ps aux |awk '{print $8 " " $2}' |grep -w Z
Z 10460
什麽東西呢?
[oracle@oracle02 ~]$ ps -ef |grep 10460
oracle 10460 10431 0 Aug10 ? 00:00:00 [Xsession] <defunct>
oracle 22374 26077 0 13:11 pts/1 00:00:00 grep 10460
[oracle@oracle02 ~]$ kill -9 10460
top發現並沒有去掉,查看一下他的父進程是個啥?
[oracle@oracle02 ~]$ ps -ef |grep 10431
oracle 10431 8971 0 Aug10 ? 00:00:00 /usr/bin/gnome-session
oracle 10460 10431 0 Aug10 ? 00:00:00 [Xsession] <defunct>
oracle 10493 10431 0 Aug10 ? 00:00:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /etc/X11/xinit/Xclients
oracle 30789 26077 0 13:15 pts/1 00:00:00 grep 10431
[oracle@oracle02 ~]$ kill -9 10431
乾淨了,這個gnome-session是幹嘛的呢?再查一下
參考:http://www.cyberciti.biz/tips/killing-zombie-process.html
没有评论:
发表评论