Re: [mp1] text-book forking code still producing zombies

2004-10-15 Thread Scot Martin
Hi Mark, I don't know if this will help, but out of the numerous ways I tried this is the only way I could solve the zombie issue in MP2 on Solaris 8: use POSIX 'WNOHANG'; use POSIX ":sys_wait_h"; my($kid); do { $kid=waitpid(-1,WNOHANG); } until $kid <= 0; if(!(defined ($pid = fork( {

Re: [SumsaultRT #1249][mp1] text-book forking code still producing zombies

2004-10-06 Thread Mark Stosberg
On 2004-10-06, Mark Stosberg <[EMAIL PROTECTED]> wrote: > >>> Could setting MaxRequestsPerChild be a meaningful solution here? It >>> would seem that this would cause the Apache child processes to >>> periodically get re-created, killing related zombies in the process. >> >> If you aren't using Ma

Re: [SumsaultRT #1249][mp1] text-book forking code still producing zombies

2004-10-06 Thread Mark Stosberg
On 2004-10-06, Perrin Harkins <[EMAIL PROTECTED]> wrote: > On Wed, 2004-10-06 at 16:56, Mark Stosberg wrote: >> At your recommended, I installed strace and ran it on the hung process. >> It doesn't work. > > Hmm, maybe it's time to add some logging to your forked processes to > find out where they

Re: [SumsaultRT #1249][mp1] text-book forking code still producing zombies

2004-10-06 Thread Perrin Harkins
On Wed, 2004-10-06 at 16:56, Mark Stosberg wrote: > At your recommended, I installed strace and ran it on the hung process. > It doesn't work. Hmm, maybe it's time to add some logging to your forked processes to find out where they are getting stuck. > Could setting MaxRequestsPerChild be a meani

Re: [SumsaultRT #1249][mp1] text-book forking code still producing zombies

2004-10-06 Thread Mark Stosberg
Stas -- On 2004-10-05, Stas Bekman <[EMAIL PROTECTED]> wrote: > > May be it's just not working on your platform. Have you tried the other > suggested solutions at: > http://perl.apache.org/docs/1.0/guide/performance.html#Avoiding_Zombie_Processes Thank you very much for the response. In the past

Re: [mp1] text-book forking code still producing zombies

2004-10-04 Thread Stas Bekman
Mark Stosberg wrote: Hello, I've been enjoying the performance benefits of mod_perl, and appreciate the help of the contributors here. Now I'm investigating why our production code is producing zombies. I'll post the key parts of my code below. First, some observations: 1. Zombies appear to be

[mp1] text-book forking code still producing zombies

2004-10-04 Thread Mark Stosberg
Hello, I've been enjoying the performance benefits of mod_perl, and appreciate the help of the contributors here. Now I'm investigating why our production code is producing zombies. I'll post the key parts of my code below. First, some observations: 1. Zombies appear to be created only in a m