使用类似的命令top和基于 gui 的命令,System Monitor我可以看到目前我有几个僵尸进程。
什么是僵尸进程?
它们是否会影响系统或它们所依赖的应用程序的性能。他们是否使用了太多内存或根本没有任何内存?
System information as of Fri Mar 9 19:40:01 KST 2012
System load: 0.59 Processes: 167
Usage of /home: 23.0% of 11.00GB Users logged in: 1
Swap usage: 0% IP address for eth1: 192.168.0.1
=> There is 1 zombie process.
Graph this data and manage this system at https://landscape.canonical.com/
10 packages can be updated.
4 updates are security updates.
Last login: Fri Mar 9 10:23:48 2012
a@SERVER:~$ ps auxwww | grep 'Z'
USER PID %CPU %MEM VSZ RSS TTY STAT START …Run Code Online (Sandbox Code Playgroud) 我可以在我的计算机中看到几个僵尸进程。我怎样才能摆脱它们?
事实上,为什么会存在vlc和pidgin僵尸?这是Ubuntu中的错误还是我做过的事情?
谢谢!
ps aux |grep Z
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
sammy 3236 0.0 0.0 0 0 ? Zl heinä26 0:01 [vlc] <defunct>
sammy 4028 0.0 0.0 0 0 ? Zl heinä26 0:00 [vlc] <defunct>
sammy 4046 0.0 0.0 0 0 ? Zl heinä26 0:00 [vlc] <defunct>
sammy 4060 0.0 0.0 0 0 ? Zl heinä26 0:00 [vlc] <defunct>
sammy 4841 0.0 0.0 0 0 ? Z heinä26 0:00 [pidgin] <defunct>
sammy 4844 …Run Code Online (Sandbox Code Playgroud) 问题:
当我注意到传输窗口变灰且没有响应时,我正在通过传输下载文件。单击它时,Ubuntu (10.04) 要求我强制关闭。剩下的是一个僵尸进程,它使用了 1 个 CPU 的 100%,这几乎让我的小机器停滞不前。top和系统监视器看起来与此相关问题中的屏幕截图非常相似。
采取的步骤:
sudo kill {the PID}但什么也没发生。(我不了解 Linux,所以我没有尝试kill使用任何参数。)问:
很明显,我不能不重启就杀死这个僵尸。(或者我可以吗?)我怎样才能避免这个僵尸?是什么导致传输中断?
sudo kill -9 {the PID},但似乎什么也没做。一分钟后,僵尸消失了,灰色的传输窗口也消失了。我再次启动了传输,现在它似乎可以运行了。很奇怪?