僵尸进程分析
Tofloor
poster avatar
159******10
deepin
2020-10-24 00:43
Author
通过 ps -ef |grep defunct 命令发现这些僵尸进程,的父进程id是3191
  1. shooke   25510  3191  0 10:58 ?        00:00:00 [sh]
  2. shooke   26873  3191  0 11:04 ?        00:00:00 [sh]
  3. shooke   27667  3191  0 10月22 ?      00:00:00 [sh]
  4. shooke   28015  3191  0 11:09 ?        00:00:00 [sh]
  5. shooke   29675  3191  0 11:21 ?        00:00:00 [sh]
  6. shooke   31110  3191  0 10月22 ?      00:00:00 [sh]
Copy the Code
查找pid为3191的进程发现,该进程是 /usr/bin/startdde 产生的
  1. shooke    3191  3078  0 10月22 ?      00:01:15 /usr/bin/startdde
Copy the Code

统计了一下僵尸进程的数量 是65个
  1. $ ps -e -o ppid,stat | grep Z | cut -d " " -f2 | wc -l
  2. 65
Copy the Code
于是打开了一下文件管理器,再次统计发现数量变成了66 ,可以确定这些僵尸紧凑是文件管理器生成的,打开次数越多,生成的就越多。另外,打开其他应用也会增加一个僵尸进程,比如任务管理器、控制中心、影院、应用商店、vscode、postman。可以确定bug应该是处在dde底层,打开每个应用都会产生僵尸进程,无论是官方还是第三方应用

https://bbs.deepin.org/user/48640

Reply Favorite View the author
All Replies
juteman
deepin
2020-10-24 01:00
#1
这周一就发现是startdde的问题了,现在研发小哥正在修
Reply View the author
花心胡萝卜
deepin
2020-10-24 01:08
#2
ps aux|awk '{ if ($8=="Z") print $0 }'
可以看的比较轻松一乃乃
Reply View the author