processes


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users processes
# 1  
Old 08-28-2001
processes

How can i kill the zombie processes,like using some background process which can help me reduce the process load on the server. the OS is AIX.
# 2  
Old 08-28-2001
zombies

"zombie" processes do not consume any CPU or
memory whatsoever. The only system resource they
consume is a slot in the process table.
zombies typically occurr when some process
terminates abnormally and it's parent no longer
exists or the process itself is a process group
leader. You may want to check the man page
on the wait(2) system call or the wait(1)
command (in the case of a shell script).

You might want to find out what is causing
these zombies and eliminate the problem at the
source. In any case, removeing zombies will not
do anything to increase performance for the
reason stated above.
# 3  
Old 08-29-2001
Thanx a lot but still i have one doubt, if i dont know how the parent process of the Zombie processes , than how can i track the parent process and since the zombie processes are attached to root than only root can kill it. is there any solution that i should restrict zombie process up to some extent at the user level.

Last edited by rajusom; 08-29-2001 at 04:55 AM..
# 4  
Old 08-29-2001
zombies

Unfortunately, since zombies are "the living dead"
they cannot be "killed" since they are already
dead. I assume you are seeing many of them when
you run a "ps". When executing ps for example:

# ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 Jun 01 - 1:55 /etc/init
root 6456 1 0 Jun 01 - 0:00 /usr/sbin/srcmstr
root 6740 6456 0 Jun 01 - 0:13 /usr/sbin/syslogd

You can see here that "init" is the "mother" of
all processes with PID of 1. As you see above,
the System Resource Controller (srcmstr) is the
parent of the Syslog Deamon (syslogd). This is
determined by syslogd's PPID being 6456 which
is the PID of srcmstr.

Can you determine what the PPID of the zombies
is? Is it the same for all of them? What was
changed on the system recently that may be
causing this?
Also, check your system logs in:
/var/adm/message and /var/adm/messages/syslog.log
for any relevant information.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

processes

may i know a command to find processes not attached to a terminal?? (1 Reply)
Discussion started by: riya9
1 Replies

2. Shell Programming and Scripting

Finding the age of a unix process, killing old processes, killing zombie processes

I had issues with processes locking up. This script checks for processes and kills them if they are older than a certain time. Its uses some functions you'll need to define or remove, like slog() which I use for logging, and is_running() which checks if this script is already running so you can... (0 Replies)
Discussion started by: sukerman
0 Replies

3. UNIX for Dummies Questions & Answers

Processes

Hi all, I needed a little help. It's OS thing. Suppose I have 2 machine connect over a network, I will call my machines as M1and M2. If I copy a files from M1 to M2. What tasks are these two machine performing for copy to work. My assumption is that M1 is performing read action and... (1 Reply)
Discussion started by: vishwesh
1 Replies

4. Solaris

Identifying and grouping OS processes and APP processes

Hi Is there an easy way to identify and group currently running processes into OS processes and APP processes. Not all applications are installed as packages. Any free tools or scripts to do this? Many thanks. (2 Replies)
Discussion started by: wilsonee
2 Replies

5. UNIX for Advanced & Expert Users

Monitoring Processes - Killing hung processes

Is there a way to monitor certain processes and if they hang too long to kill them, but certain scripts which are expected to take a long time to let them go? Thank you Richard (4 Replies)
Discussion started by: ukndoit
4 Replies

6. Shell Programming and Scripting

Processes

I have a file like this. No. State Query Times User Processed Syslog 1 ready idle 973s 0 /Application/ugsvols/bldata01/logs/imanscript1562.syslog 2 ready idle 803s 83997 13 /Application/ugsvols/bldata01/logs/imanscript1542.syslog 3 ready idle 2954s 106641... (17 Replies)
Discussion started by: Krrishv
17 Replies

7. Filesystems, Disks and Memory

processes

write a program create two processes to run a for loop which adds numbers 1 to n , say one process adds odd numbers and other adds even numbers (1 Reply)
Discussion started by: jayaram_miryabb
1 Replies

8. Shell Programming and Scripting

I need some example of Co-Processes

I want to know how to work the Co-Processes in kornshell scripts. So, I very need some script about Co-Processes! thanks ...:) (3 Replies)
Discussion started by: javalee
3 Replies

9. UNIX for Dummies Questions & Answers

processes

What command string will locate ONLY the PID of a process and ouput only the number of PID of the process? (1 Reply)
Discussion started by: mma_buc_98
1 Replies

10. UNIX for Dummies Questions & Answers

co-processes

Is it possible to have a main script (i will call it main.ksh) that executes say, 4 other scripts (sub_prog_1.ksh, sub_prog_2.ksh etc..) from within this main.ksh (simultaneously/in parallel), have them run in the background and communicate back to main.ksh when complete? My guess is to use... (1 Reply)
Discussion started by: google
1 Replies
Login or Register to Ask a Question