当前位置: 技术问答>linux和unix
ps -ef|grep dbl看看哪个是死进程
来源: 互联网 发布时间:2016-02-09
本文导语: $ ps -ef|grep dbl nv2 24255 1 0 17:56:43 ? 4:25 ./dbl2_sv ../config/dbl2.cfg nv2 27433 1 0 18:04:25 ? 0:23 ./dbl1_sv ../config/dbl1.cfg nv2 4071 4070 3 11:31:11 ? ...
$ ps -ef|grep dbl
nv2 24255 1 0 17:56:43 ? 4:25 ./dbl2_sv ../config/dbl2.cfg
nv2 27433 1 0 18:04:25 ? 0:23 ./dbl1_sv ../config/dbl1.cfg
nv2 4071 4070 3 11:31:11 ? 0:00 /bin/ksh ./gw_convert.sh /home/n
v2/dbloader/dbl2/gw netvision 6
nv2 4070 24255 0 11:31:11 ? 0:00 sh -c ./gw_convert.sh /home/nv2/
dbloader/dbl2/gw netvision 6D1B
nv2 6372 2335 2 11:31:45 pts/tb 0:00 grep dbl
nv2 13940 1 0 18:52:20 ? 0:23 ./dbl1_sv ../config/dbl1.cfg
nv2 26702 1 0 18:02:29 ? 0:23 ./dbl1_sv ../config/dbl1.cfg
显示出来的哪个是死进程呢?
怎么判断
谢谢
nv2 24255 1 0 17:56:43 ? 4:25 ./dbl2_sv ../config/dbl2.cfg
nv2 27433 1 0 18:04:25 ? 0:23 ./dbl1_sv ../config/dbl1.cfg
nv2 4071 4070 3 11:31:11 ? 0:00 /bin/ksh ./gw_convert.sh /home/n
v2/dbloader/dbl2/gw netvision 6
nv2 4070 24255 0 11:31:11 ? 0:00 sh -c ./gw_convert.sh /home/nv2/
dbloader/dbl2/gw netvision 6D1B
nv2 6372 2335 2 11:31:45 pts/tb 0:00 grep dbl
nv2 13940 1 0 18:52:20 ? 0:23 ./dbl1_sv ../config/dbl1.cfg
nv2 26702 1 0 18:02:29 ? 0:23 ./dbl1_sv ../config/dbl1.cfg
显示出来的哪个是死进程呢?
怎么判断
谢谢
|
ps -aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 1268 488 ? Ss 11:54 0:00 init [5]
root 2 0.0 0.0 0 0 ? S 11:54 0:00 [migration/0]
root 3 0.0 0.0 0 0 ? SN 11:54 0:00 [ksoftirqd/0]
root 4 0.0 0.0 0 0 ? S 11:54 0:00 [watchdog/0]
...
STAT表进程状态
D 不可中断睡眠 (通常是在IO操作)
R 正在运行或可运行(在运行队列排队中)
S 可中断睡眠 (在等待某事件完成)
T Stopped, either by a job control signal or because it is being traced.
W 正在换页(2.6.内核之前有效)
X 死进程 (should never be seen)
Z 僵尸
I --空闲
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 1268 488 ? Ss 11:54 0:00 init [5]
root 2 0.0 0.0 0 0 ? S 11:54 0:00 [migration/0]
root 3 0.0 0.0 0 0 ? SN 11:54 0:00 [ksoftirqd/0]
root 4 0.0 0.0 0 0 ? S 11:54 0:00 [watchdog/0]
...
STAT表进程状态
D 不可中断睡眠 (通常是在IO操作)
R 正在运行或可运行(在运行队列排队中)
S 可中断睡眠 (在等待某事件完成)
T Stopped, either by a job control signal or because it is being traced.
W 正在换页(2.6.内核之前有效)
X 死进程 (should never be seen)
Z 僵尸
I --空闲