[tutorial/article] How to Find and Kill Zombie Process in Linux

1 message · started by Devi Garcia on Oct 15, 2021

[tutorial/article] How to Find and Kill Zombie Process in Linux

From Devi Garcia · Oct 15, 2021

Brief: This is a quick tip on finding zombie processes in Linux and then
killing them. You also learn a thing or two about processes and zombie
processes.

Before you learn about Zombie process, let me recall what is a process
in Linux.

In a few words, a process is a running instance of a program in
performance. It can be foreground (interactive process) or background
(not interactive or automatic process). It can be a parent (creator of
other processes during run-time) or child (process created by others)
process.

In Linux, except for the first init (or systemd) process with PID 0,
every other process has a parent process. Processes also have their own
child processes.

Don’t believe me? Use the pstree command in terminal to look at the
process tree to see the ‘family tree’ of your system’s processes.

What is a Zombie process in Linux?
When a child process dies, the parent process is informed so that it can
do some clean up like freeing up memory etc. However, child process goes
into zombie state if the parent process is not aware of its death. For
the parent, the child still exists but the child process is actually
dead. This is how zombie processes (also known as defunct processes) are
created and stay in the system.

read more: https://itsfoss.com/kill-zombie-process-linux/

--------------------------------------------------------------------
Cochise Linux Users Group Mailing List - cochiselinux@freelists.org
For more information: https://cochiselinuxusergroup.org/
Mailing List Archive: https://www.freelists.org/archive/cochiselinux
To unsubscribe: //www.freelists.org/list/cochiselinux

View original on FreeLists


Previous thread · Next thread

Back to October 2021