ME_infinite 发表于 2013-03-11 15:00

天啊,这么多的僵尸进程

刚才到服务器上检查,sparc t4-1的机器,系统是solaris 11 64位,16G 的内存
root用户执行top命令,发现有12个僵尸进程,虽然CPU的idle为99.2,但是内存只有100M空闲
操作一些命令仍然是很慢很慢
比如root切换到grid,用crs_stat -t -v,等了半天都没出个结果


如何查找这些僵尸进程并且给杀掉呢

pitonas 发表于 2013-03-16 09:21

天啊,这么多:dizzy:

oasvr 发表于 2013-03-18 12:55

天啊,居然有12个这么多,我的手指头不够用,数不过来了……


找些植物来帮忙?

……

嗯,要不试试ps -ef |grep defunct

你问,找到之后怎么办?

人称镰刀巨魔的preap是你的好朋友。

ME_infinite 发表于 2013-03-21 11:18

回复 3# oasvr


    嗯。我刚才在系统里试了 有这条命令
但是preap后面得跟进程的pid,而这个pid我如何获取呢?
ps -ef里找不到哪个进程是僵尸进程

那么,ps后面跟哪个参数能查到某个僵尸进程的状态是z和这个进程的PID?
谢谢了

ME_infinite 发表于 2013-04-02 10:27

回复 3# oasvr


    你好,以下是我用ps -ef 的结果
root@db2:~# ps -ef |grep defunct
    root 258221478   0      - ?         0:00 <defunct>
    root 255301478   0      - ?         0:00 <defunct>
    root 197351478   0      - ?         0:00 <defunct>
    root 177691478   0      - ?         0:00 <defunct>
    root 267961478   0      - ?         0:00 <defunct>
    root10151478   0      - ?         0:00 <defunct>
    root 287371478   0      - ?         0:00 <defunct>
    root 147581478   0      - ?         0:00 <defunct>
    root53121478   0      - ?         0:00 <defunct>
    root 147721478   0      - ?         0:00 <defunct>
    root25551478   0      - ?         0:00 <defunct>
    root72631478   0      - ?         0:00 <defunct>
    root 110431478   0      - ?         0:00 <defunct>
    root 234251478   0      - ?         0:00 <defunct>
    root81861478   0      - ?         0:00 <defunct>
    root 177841478   0      - ?         0:00 <defunct>
    root 138251478   0      - ?         0:00 <defunct>
    root 25837 25831   0 10:21:52 pts/1       0:00 grep defunct
    root 225561478   0      - ?         0:00 <defunct>
    root 205421478   0      - ?         0:00 <defunct>


请问,这些进程都是僵尸进程吗?所有的进程的PPID都是1478,
也就是说 我只要把这些僵尸进程的父进程 PPID 1478给杀掉,那么这些僵尸进程就自动被杀掉了?

或者,我需要把每个僵尸进程都杀掉,然后也把父进程给杀掉?
页: [1]
查看完整版本: 天啊,这么多的僵尸进程