For Programmers: Free Programming Magazines  


Home > Archive > PERL Miscellaneous > April 2004 > Script to kill defunct and zombie processes









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Script to kill defunct and zombie processes
Srini Vuggumudi

2004-04-30, 3:41 am

Hello Friends,

While browsing the messages in this new group, I found that a couple
of people tried and successful in cleaning the defunct and zombie
process using a PERL or shell script.

If you have a working script that cleans defuncts and zombies , could
you please post it? I appreciate your help. I do not have experience
with SIGNALS in PERL.

Also, here is my problem:

I have an apache/mysql/perl/Linux environment running cgis. My
webserver runs fine for a couple of days. After a month or so, it
starts running really slow (if someone try to access the URL, the
response will be slow). When the webserver responses are slow, If I do
ps -aef, I do see a lot of defunts. Aslo, if I do "top", I do see the
zombies count as 60 - 70. I believe these defunts and zombies may be
taking my webserver's resources and making it run slow.

Any suggesstions?

If you have a working script that cleans defuncts and zombies , could
you please post it? I appreciate your help.

Thank you.

Sincerely,

Srini
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com