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 我的数字生活论坛 . 。
Related Articles相关文章
- Running Google Earth on Suse Linux with VMware Google地球运行在SuSE Linux上使用VMware
- Mandriva Linux 2008 Available for Downloading mandriva Linux的2008年供下载
- Download Process Explorer 11.02 to Know Which File or Directory Open下载Process Explorer的11.02知道哪些文件或目录开放
- How to Check Memory Usage in Linux based Server如何检查记忆体使用量在基于Linux的服务器
- Cheapest Linux Box Ever最便宜的Linux的方块以往任何时候都
- Get Ready for Linux Genuine Advantage (LGA) - with Source and Crack准备Linux的真正优势(饭店) -与来源和打击
- Change User Name on Linux改变使用者名称在Linux上
- Display Path and File Name of Active Running Processes (Image) in Windows Vista Task Manager显示的路径和文件名活跃正在运行的进程(形象)在Windows Vista任务管理器
- Identify The Running Processes Via ProcessQuickLink确定正在运行的进程通过processquicklink
- Ubuntu 6.06 Reviews Ubuntu的6.06评语


















