Find Out Linux Orphan Processes

It’s very important of terminating Linux processes in a proper way to avoid Linux hangs up without any trail in system log file. In short, Linux will hangs up without telling reasons in system log, when the master process (init, PID 1) becomes overloaded by too many orphan processes in a one go.

Having say that, a normal user who has access to your Linux server is possible to easily kill your Linux server in a minute!

How could we able to detect and find out a runaway process or orphan process? There is a discussion on zombie VS orphan process, the orphan processes are identified as

non-system processes or user’s processes that are having PPID (parent process ID) of 1 (init process ID), via a mechanism known as re-parenting.

There are not much processes owned by init process. Apparently, most of the system processes that are running after system boots up are having PPID 1.

So, soon after Linux system boots up, you can run this command

ps -elf | head -1; ps -elf | awk ‘{if ($5 == 1) {print $0}}’

to snapshot all the processes with PPID 1. Keep that result. Thereafter, you may periodically run the command to compare the result of the time with snapshot taken earlier. Any differences found in the new snapshot might be potentially being orphan processes.

Note, the differences found are only suggest that they’re potential (not confirm) orphan processes in Linux system. You have to get more info to confirm them before terminating those processes. For example, how STIME figure, CPU utilization, understanding its purpose of executing, etc.

Once you have confirm them, you should not hesitate to terminate them as soon as possible, by the kill -9 command, as orphan processes will drain out your Linux system resources over the time.

Share and contribute or get technical support and help at My Digital Life Forums.



Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting


Custom Search

New Articles

Incoming Search Terms for the Article

linux orphaned processes - linux find process parent - linux kill orphan process - linux orphan process - linux orphan - linux orphan processes - PPID Linux - how to find the orphaned process in unix - orphan process that displays PID & PPID - ppid is 1 - linux process parent - detecting zombie proces - finding parent process linux - ppid 1 - how to find linux runaway process - linux find orphan process - linux PPID - linux find orphan - finding a processes in linux - kill orphan process in linux - kill linux process parent - linux "process explorer" - linux find orphaned process - linux runaway orphan process - detect orphaned processes linux - find linux - finding orphaned process linux - linux detect zombie processes - Orphaned processes + Linux - detecting hung processes in linux - find orphan threads in linux - how to kill a process owned by init on linux - kill linux orphaned process - linux process - find parent process - linux ppid command - linux process parent query - linux find orphans - orphan processes linux - stop process ppid 1 - find orphan process linux - find orphan process linux parent - kill orphan threads in linux - linux list stopped processes - how to find parent of a process linux - linux will orphan process get cpu time - linux finding parent of process - orphans linux - find parent process linux - linux find which process is window - how to find zombies in linux -