Zombie processes
zak@orionrecruitinggroup:~$ ps -A|grep defunct|wc -l
145
Killing all the zombies doesn't solve the problem because new ones are generated constantly. They eventually cause mysql to act up; most services on the system depend on mysql. The only solution seems to be a reboot, which isn't acceptable to do regularily on a machine that needs to be available to receive mail all the time. The symptoms are similar to this
Has anyone encountered a similar issue?
1 Reply
When sigqueue overflows in 2.4, all linuxthreads-based programs, including root-run daemons, stop receiving notifications about thread exits. All completed threads become zombies.
In 2.6, since NPTL is used instead of linuxthreads, there are no zombies from system daemons but sigqueue overflow still causes strange (bad) things to happen.
They specifically mention mysql problems.
Edited to add:
More specifically, long lived processes that generate many short-lived threads during their normal operations (like mysql) are the first to feel the pain when the process table fills up.