httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J. Nick Koston" <n...@cpanel.net>
Subject [users@httpd] Re: Perl Processes "Zombie-Out"...
Date Sun, 20 Jul 2003 16:51:49 GMT

I've been seeing the same problem.  It seems to be related to something
not being able to send sigterm on a broken pipe (sigpipe).

[pid 12139] gettimeofday({1058718820, 273235}, NULL) = 0
[pid 12139] times({tms_utime=0, tms_stime=0, tms_cutime=0,
tms_cstime=0}) = 164894393
[pid 12139] close(3)                    = 0
[pid 12139] rt_sigaction(SIGUSR1, {0x80967b4, [],
SA_INTERRUPT|0x4000000}, {SIG_IGN}, 8) = 0
[pid 12139] wait4(12147, NULL, WNOHANG, NULL) = -1 ECHILD (No child
processes)
[pid 12139] kill(12147, SIGTERM)        = -1 EPERM (Operation not
permitted)
[pid 12139] close(3)                    = -1 EBADF (Bad file descriptor)


Forwarded Message Follows:
Lately, I have been noticing that all Perl applications executed as CGIs
via
Apache have randomly taken to go zombie.  That is,  % ps ax | grep cgi has
come to return a list such as the following:

11359 ?        Z      0:00 [Pollitssi.cgi <defunct>]
11412 ?        Z      0:00 [Pollitssi.cgi <defunct>]
11415 ?        Z      0:00 [Pollitssi.cgi <defunct>]
11465 ?        Z      0:00 [Pollitssi.cgi <defunct>]
11509 ?        Z      0:00 [index.cgi <defunct>]
11511 ?        Z      0:00 [Pollitssi.cgi <defunct>]
11544 ?        Z      0:00 [Pollitssi.cgi <defunct>]
11600 ?        Z      0:00 [Pollitssi.cgi <defunct>]
11663 ?        Z      0:00 [Pollitssi.cgi <defunct>]

Note that the above is only a segment of the list and that as the server's
uptime prolongs, so does the listing's length (as is obvious, for more users
are accessing more parts of the server).  When I restart Apache, all the
CGI-based defunct processes disappear, as should be expected.  However, I'm
certain there must be some way to correct this error besides invoking
frequent Apache restarts and/or restoring my Apache install. :-)  Any
thoughts on what could be causing this situation and how it should be
rectified?

Thank you!

Regards,
Brad Galiette


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
-- 
J. Nick Koston <nick@cpanel.net>
cPanel, Inc.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message