Ubuntu Server 14.04 上出现大量僵尸进程

Ubuntu Server 14.04 上出现大量僵尸进程

我使用的是 Ubuntu 14.04 服务器,最近几天,MySQL 有几次变得没有响应,我不得不远程重启。我一直不在,所以没能仔细查看,但今天我看到了数千个以下僵尸 (# ps -aef):

sshd 1852 1 0 11:04 ? 00:00:00 [sshd] defunct
www-data 1888 1 0 11:05 ? 00:00:00 [spine] defunct
www-data 1941 1 0 09:02 ? 00:00:00 [spine] defunct
root 1946 1 0 11:05 ? 00:00:00 [pure-ftpd-mysql] defunct
sshd 1963 1 0 09:02 ? 00:00:00 [sshd] defunct
sshd 1975 1 0 06:46 ? 00:00:00 [sshd] defunct
root 1979 1 0 06:46 ? 00:00:00 [php5-fpm] defunct
mysql 1239 1 0 Apr21 ? 00:23:31 [mysqld] defunct

我重启了 mysql 并运行了 Zombie Slayer http://blog.alexolivan.com/getting-r...bie-processes/它使用 gdb 杀死所有僵尸进程,但更多进程立即出现。

几分钟之内我就得到了:

root 18256 1 0 12:00 ? 00:00:00 [php5-fpm] defunct
sshd 18741 1 0 12:03 ? 00:00:00 [sshd] defunct
sshd 18746 1 0 12:03 ? 00:00:00 [sshd] defunct
root 18899 1 0 12:03 pts/3 00:00:00 [gdb] defunct
sshd 19038 1 0 12:03 ? 00:00:00 [sshd] defunct
sshd 19122 1 0 12:03 ? 00:00:00 [sshd] defunct
sshd 19124 1 0 12:03 ? 00:00:00 [sshd] defunct
www-data 19128 1 0 12:04 ? 00:00:00 [spine] defunct
sshd 19156 1 0 12:04 ? 00:00:00 [sshd] defunct
sshd 19236 1 0 12:04 ? 00:00:00 [sshd] defunct
sshd 19238 1 0 12:04 ? 00:00:00 [sshd] defunct
sshd 19337 1 0 12:04 ? 00:00:00 [sshd] defunct

...而且列表增长得相当快(半小时内大约 200 个)。我猜问题发生在我用完 PID 时,但为什么会发生这种情况?有人能提出任何调查线索吗?

相关内容