Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
僵尸进程分析
Experiences and Insight
533
views ·
2
replies ·
To
floor
Go
159******10
deepin
2020-10-24 00:43
Author
通过 ps -ef |grep defunct 命令发现这些僵尸进程,的父进程id是3191
shooke 25510 3191 0 10:58 ? 00:00:00 [sh]
shooke 26873 3191 0 11:04 ? 00:00:00 [sh]
shooke 27667 3191 0 10月22 ? 00:00:00 [sh]
shooke 28015 3191 0 11:09 ? 00:00:00 [sh]
shooke 29675 3191 0 11:21 ? 00:00:00 [sh]
shooke 31110 3191 0 10月22 ? 00:00:00 [sh]
Copy the Code
查找pid为3191的进程发现,该进程是
/usr/bin/startdde 产生的
shooke 3191 3078 0 10月22 ? 00:01:15 /usr/bin/startdde
Copy the Code
统计了一下僵尸进程的数量 是65个
$ ps -e -o ppid,stat | grep Z | cut -d " " -f2 | wc -l
65
Copy the Code
于是打开了一下文件管理器,再次统计发现数量变成了66 ,可以确定这些僵尸紧凑是文件管理器生成的,打开次数越多,生成的就越多。另外,打开其他应用也会增加一个僵尸进程,比如任务管理器、控制中心、影院、应用商店、vscode、postman。可以确定bug应该是处在dde底层,打开每个应用都会产生僵尸进程,无论是官方还是第三方应用
https://bbs.deepin.org/user/48640
Reply
Like 0
Favorite
View the author
All Replies
juteman
deepin
2020-10-24 01:00
#1
这周一就发现是startdde的问题了,现在研发小哥正在修
Reply
Like 0
View the author
花心胡萝卜
deepin
2020-10-24 01:08
#2
ps aux|awk '{ if ($8=="Z") print $0 }'
可以看的比较轻松一乃乃
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
simple
Popular Events
More
统计了一下僵尸进程的数量 是65个
https://bbs.deepin.org/user/48640