[plug] zombie state
Jon Miller
jlmiller at mmtnetworks.com.au
Fri Jul 23 21:42:33 WST 2004
What happens is the scanner when loaded (or reloaded) has about 12 threads (I believe this is the correct term) to handle mail as it comes in. If more is needed more threads are given to a set maximum number. What I can see when this happens is there are a lot of threads or instances of the threads listed when doing a ps -A. I have to issue a killall -9 and scanner name to remove the entries. Then I can restart the program. This doesn't happen all the time, but lately I've been seeing this on site where there is a heavy load of e-mail.
Jon
Jon L. Miller, MCNE, CNS, ASE
Director/Sr Systems Consultant
MMT Networks Pty Ltd
http://www.mmtnetworks.com.au
"I don't know the key to success, but the key to failure
is trying to please everybody." -Bill Cosby
>>> alan.graham at infonetsystems.com.au 7:07:20 pm 23/07/2004 >>>
A zombie isn't an application locked up. It's a child process that has
finished, whose parent hasn't cleaned it up properly.
Unix processes start other processes by executing a 'fork'. The 'fork'
copies the process, so that there are two identical processes except for
the process id. The copy is termed the child process, the original is
the parent. Typically, the code after the fork looks at the PID to see
if this is the parent or the child If it's the parent, it 'wait's for
the child to end. If it doesn't 'wait', when the child ends it
zombies. The idea is that eventually the parent will execute a 'wait',
which will allow the zombies to end.
It sounds like the virus scanner is forking a child process to handle
each incoming mail. Once each child ends, it zombies. The parent
process continues to monitor port 25 while the child is examining the
mail to ensure that each mail coming in is handled in a timely fashion,
no matter how long each preceding mail is taking to be scanned. The
parent should be cleaning up its own child processes periodically.
Zombies don't normally cause problems. They should have released their
resources before they ended, so it's just an entry on the process
table. Are they causing a problem?
HTH
Alan
On Fri, 2004-07-23 at 17:45, Jon Miller wrote:
> On a Debian server an application will go into a zombie state and lock-up. Is there a reason for this? or better still is there a way to unlock it automatically? The application is a virus scanning software that receives mail on port 25, scans the mail and sends it to another server on another servers port 25.
>
>
> Thanks
>
> Jon L. Miller, MCNE, CNS, ASE
> Director/Sr Systems Consultant
> MMT Networks Pty Ltd
> http://www.mmtnetworks.com.au
>
> "I don't know the key to success, but the key to failure
> is trying to please everybody." -Bill Cosby
>
> ______________________________________________________________________
> _______________________________________________
> PLUG discussion list: plug at plug.linux.org.au
> http://mail.plug.linux.org.au/cgi-bin/mailman/listinfo/plug
> Committee e-mail: committee at plug.linux.org.au
--
Alan Graham <alan.graham at infonetsystems.com.au>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plug.org.au/pipermail/plug/attachments/20040723/86c4b94c/attachment.htm>
More information about the plug
mailing list