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 to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.
Custom Search

New Articles

Incoming Search Terms for the Article

linux find parent process - linux orphan process - linux ppid - linux find parent process id - unix + how to find orphaned processes - what are orphaned files in linux - windows processes orphans - linux finding processes stopped - orphaned files linux - how to find zombie in Linux - linux resolve process parent - how to detect process hang in unix - linux orphan process - linux orphan process Reincarnation - how to find out ppid of a process - poreno propono - porno propono - linux process parent - processes linux - why ppid is 1 - find out PPID linux - how to find orphaned process in linux - kill hanging orphaned process - linux parent process - orphan process in unix - what is a orphan process - linux - detecting orphaned process - find orphan process - how to kill an orphan process in linux - orphaned or runaway processes - ppid find - linux how to find parent process - finding orphaned processes - how to find a process in linux - linux kill parent ppid 1 - what is orphan proces - how to find if a process is hung + UNIX - linux orphaned process - linux find ppid - poreno grafics -