Zombie Process
A Zombie Process is a terminated process that still remains in the process table until its parent collects the exit status. While harmless in small numbers, too many can exhaust system resources.
A Zombie Process is a terminated process that still remains in the process table until its parent collects the exit status. While harmless in small numbers, too many can exhaust system resources.
A Zombie Process is a process in Unix or Linux that has completed execution but still remains in the process table. It is also known as a defunct process. Although the process is no longer running, its entry persists until the parent process reads its exit status.
Zombie processes do not consume CPU or memory resources (beyond the small entry in the process table), but a large number of them can indicate a problem and eventually exhaust system resources.
wait() or similar system calls).Zombie processes can be identified using commands like:
ps aux | grep 'Z'
In the process list, zombies appear with a Z (zombie) in the status column, often marked as <defunct>.
init (PID 1), which reaps them automatically.wait() to collect the exit code.Zombie processes are normal and harmless in small numbers, but a buildup signals a potential software issue. Proper process management and cleanup ensure that finished processes are correctly reaped, preventing resource exhaustion.