Find Out Linux Orphan Processes找出Linux的孤儿进程

It’s very important of terminating这是非常重要的终止 Linux Linux的 processes in a proper way to avoid过程中以适当方式,以避免 Linux 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.在短期内, Linux将挂起了,不需要告诉的原因,在系统日志中,当主进程(初始化, PID控制1 )成为超载太多的孤儿进程中一个路要走。

Having say that, a normal user who has access to your Linux server is possible to easily kill your Linux server有说,一个正常的用户谁有权访问你的Linux服务器是有可能很容易杀死你的Linux服务器 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.非系统的程序或用户的进程,有ppid (父进程ID ) 1 ( init的进程ID ) ,通过一个机制,被称为重新为人父母。

There are not much processes owned by init process.有没有太大的过程中所拥有的init的进程。 Apparently, most of the system processes that are running after system boots up are having PPID 1.显然,大部分的系统进程正在运行后,系统启动有ppid 1 。

So, soon after Linux system boots up, you can run this command因此,后不久, Linux系统的靴子,您可以运行此命令

ps -elf | head -1; ps -elf | awk ‘{if ($5 == 1) {print $0}}’的PS - Elf公司|头-1 ;的PS - Elf公司| awk ' (如果( $ 5 == 1 ) (打印$ 0 ) ) '

to snapshot all the processes with PPID 1.以快照的所有过程与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.注意,发现差异,只是表明他们的潜力(不确认)孤儿进程在Linux系统。 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.举例来说,如何准时数字, CPU使用率,了解它的目的,执行等。

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.一旦你确认他们,你不应该毫不犹豫地终止他们尽快,由杀死-9命令,作为孤儿进程将流失了你的Linux系统资源的时间。

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要说明 :这是一个机器翻译网页是“按原样”提供的担保。 Machine translation may be difficult to understand.机器翻译可能很难理解。 Please refer to请参阅 original English article英文原版的文章 whenever possible.只要有可能。

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> 您可以使用这些标签:的<a href="" title=""> <abbr title=""> <acronym title="">的<b> <blockquote cite=""> <cite>的<code> <删除日期时间= “ ” >的<em>的<i> <q cite=""> <strike>的<strong>

Subscribe without commenting订阅无评论


Custom Search

New Articles新的条款,

Incoming Search Terms for the Article传入的搜索条件文章

linux orphan process Linux的孤儿进程 - - orphan process in linux 孤儿进程在Linux - - linux orphan Linux的孤儿 - - kill orphan process 杀死孤儿进程 - - linux find parent process Linux的找到父进程 - - linux parent process Linux的父进程 - - orphan process linux 孤儿的过程中的Linux - - ppid 1 ppid 1 - - linux process parent Linux进程母公司 - - linux background and orphan processes Linux的背景和孤儿进程 - - kill orphan processes 杀死孤儿进程 - - find live processes in linux 找到生活的进程在Linux - - linux orphaned process Linux的孤立进程 - - unix ppid 1 UNIX的ppid 1 - - linux ppid Linux的ppid - - killing a process with ppid 1 in linux 杀害的过程,与ppid一在Linux - - too many processes linux 太多的过程中的Linux - - linux process hang Linux进程坑 - - orphaned process 孤立进程 - - linux orphan processes Linux的孤儿进程 - - how to discover orphan processes on linux 如何发现孤儿进程在Linux上 - - how to check the parent process in linux 如何检查父进程在Linux - - unable to kill process linux 无法杀死的过程中的Linux - - Check orphan process linux 检查孤儿的过程中的Linux - - ppid linux ppid的Linux - - what is orphan process in linux 什么是孤儿进程在Linux - - kill orphan processes linux 杀死孤儿进程的Linux - - linux process 137 Linux进程137 - - how to find zombie in linux 如何找到僵尸在Linux - - linux Linux的 - - how to kill processes on suse linux 如何杀人的过程在SuSE Linux - - identify orphaned processes in SUSe linux 确定而成为孤儿的过程中的SuSE Linux - - kill process hung linux 杀人的过程中红的Linux - - linux process explorer Linux进程总管 - - linux killing orphan processes Linux的杀害孤儿进程 - - "killing processes with PPID 1" “杀进程与ppid 1 ” - - command to find orphan process in Linux 命令来寻找孤儿的过程中在Linux - - kill orphaned processes 死亡而成为孤儿的过程 - - killing an orphaned process in linux 杀害一名孤儿进程在Linux - - linux unable to kill defunct process Linux的无法杀死停业进程 - - orphan processes linux 孤儿进程的Linux - - detect orphan memory 检测孤儿的记忆 - - finding parent processes linux 寻找父母的Linux进程 - - how to find zombies in linux 如何找到僵尸在Linux - - how to find zombies on linux 如何找到僵尸在Linux上 - - how to find out which processes are running on linux box 如何找出哪些进程正在运行在Linux上框 - - how to find out which orphan processes are running on linux box 如何找出哪个孤儿进程是运行Linux的框 - - linux ppid Linux的ppid - - linux kill orphan process Linux的过程中杀死孤儿 - - list out zombie process linux 列出僵尸的过程中的Linux - -