Glossary

Zombie process

What is a zombie process?

In short

A zombie process has finished running but still has an entry in the process table because its parent has not collected its exit status.

Why it matters

A zombie uses no CPU or memory, only a process id, and you cannot kill it: it is already dead. A few are harmless. Hundreds mean a parent process is broken, and if they pile up the server can run out of process ids. The fix is to restart or repair the parent.

How to check it on Linux

Count zombies and show their parents:

ps -eo stat,ppid,pid,comm | awk '$1 ~ /^Z/'

What Opservo does about it

The health score flags more than 10 zombie processes, and more strongly above 50. The Opservo Health Standard

Zombie process, answered

What is a zombie process?+

A zombie process has finished running but still has an entry in the process table because its parent has not collected its exit status.

How do I check a zombie process on Linux?+

Count zombies and show their parents: ps -eo stat,ppid,pid,comm | awk '$1 ~ /^Z/'

How does Opservo handle a zombie process?+

The health score flags more than 10 zombie processes, and more strongly above 50.

Related terms

Opservo watches all of this on every server and explains problems in plain English. Free for 2 servers.