www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@znep.com>
Subject Re: general/2645: CGI Cause the Server to die, a lot of defunct and zombie processes (fwd)
Date Mon, 20 Jul 1998 19:30:01 GMT
The following reply was made to PR general/2645; it has been noted by GNATS.

From: Marc Slemko <marcs@znep.com>
To: apbugs@apache.org
Cc:  Subject: Re: general/2645: CGI Cause the Server to die, a lot of   defunct
 and zombie processes (fwd)
Date: Mon, 20 Jul 1998 12:27:32 -0700 (PDT)

 Sigh.,
 
 ---------- Forwarded message ----------
 Date: Mon, 20 Jul 1998 15:11:22 -0400
 From: Howard Yen <howard@virtualstockexchange.com>
 To: Marc Slemko <marcs@znep.com>
 Subject: Re: general/2645: CGI Cause the Server to die, a lot of   defunct and
     zombie processes
 
 At 12:06 PM 7/20/98 -0700, you wrote:
 >Erm... where are the zombies?  There are no zombies in that ps output.
 I know that output didn't have any, but I can assure you it happens very
 often.
 
 >
 >All I see of interest is a whole bunch of perl scripts blocked on
 >something.  Are you using NFS on the system?
 
 I believe so I didn't setup the server does (nfsiod) tell you that its
 a NFS system?
 
 >
 >On Mon, 20 Jul 1998, Howard Yen wrote:
 >
 >> 
 >> here is an example of ps -auxww when the server was dieing
 >> 
 >> 
 >> www:/var/lib/httpd/htdocs/public_write# ps -auxw
 >> USER       PID %CPU %MEM  SIZE   RSS TTY STAT START   TIME COMMAND
 >> bin         57  0.0  0.0   824     0  ?  SW  Jul 16   0:00 (rpc.portmap)
 >> nobody   25647  0.0  2.0  1136   264  ?  S    12:26   0:00 /usr/sbin/httpd 
 >> nobody   25655  0.0  2.9  1116   388  ?  D    12:26   0:00 /usr/sbin/httpd 
 >> nobody   25694  0.0  0.0  1136     8  ?  S    12:26   0:00 (httpd)
 >> nobody   25699  0.0  0.0  1136     4  ?  S    12:26   0:00 (httpd)
 >> nobody   25774  0.0  0.9  1136   120  ?  S    12:28   0:00 /usr/sbin/httpd 
 >> nobody   25793  0.0  0.1  1124    20  ?  S    12:28   0:00 (httpd)
 >> nobody   25804  0.0  0.0  1124     8  ?  S    12:28   0:00 (httpd)
 >> nobody   25844  0.0  0.2  1124    36  ?  S    12:29   0:00 (httpd)
 >> nobody   25855  0.0  1.0  1128   136  ?  S    12:29   0:00 /usr/sbin/httpd 
 >> nobody   25873  0.0  0.2  1124    28  ?  S    12:29   0:00 (httpd)
 >> nobody   25875  0.0  0.1  1124    20  ?  S    12:29   0:00 (httpd)
 >> nobody   25876  0.0  1.5  1116   208  ?  D    12:29   0:00 /usr/sbin/httpd 
 >> nobody   25877  0.0  2.3  1116   308  ?  S    12:29   0:00 /usr/sbin/httpd 
 >> nobody   25879  0.0  0.5  1136    68  ?  S    12:30   0:00 (httpd)
 >> nobody   25882  0.0  0.0  1124     4  ?  S    12:30   0:00 (httpd)
 >> nobody   25884  0.0  0.0  1124     8  ?  S    12:30   0:00 (httpd)
 >> nobody   25889  0.0  1.3  1136   180  ?  S    12:30   0:00 /usr/sbin/httpd 
 >> nobody   25891  0.0  1.9  1128   256  ?  S    12:30   0:00 /usr/sbin/httpd 
 >> nobody   25900  0.0  1.3  1116   176  ?  S    12:30   0:00 /usr/sbin/httpd 
 >> nobody   25919  0.5  3.3  2812   440  ?  D    12:30   0:00 perl
 >> /var/lib/httpd/htdocs/private/sabalances.cgi 
 >> nobody   25925  0.3  2.0  2208   268  ?  D    12:30   0:00 perl
 >> /var/lib/httpd/htdocs/private/splaceorder.cgi 
 >> nobody   25926  0.0  0.0  1124     8  ?  S    12:30   0:00 (httpd)
 >> nobody   25927  0.0  2.2  1136   300  ?  S    12:30   0:00 /usr/sbin/httpd 
 >> nobody   25928  0.0  0.4  1124    56  ?  S    12:30   0:00 (httpd)
 
 >> nobody   25929  0.2  4.7  1808   624  ?  D    12:30   0:00 perl
 >> /var/lib/httpd/htdocs/private/index.cgi 
 >> nobody   25931  0.0  0.2  1124    36  ?  S    12:30   0:00 (httpd)
 >> nobody   25932  0.6  8.0  2776  1052  ?  D    12:30   0:00 perl
 >> /var/lib/httpd/htdocs/private/squote.cgi 
 >> nobody   25934  0.0  1.0  1124   132  ?  S    12:30   0:00 /usr/sbin/httpd 
 >> nobody   25935  0.0  1.4  1124   192  ?  S    12:30   0:00 /usr/sbin/httpd 
 >> nobody   25936  0.5  6.8  2664   892  ?  D    12:30   0:00 perl
 >> /var/lib/httpd/htdocs/private/sfindsymbol.cgi 
 >> nobody   25937  0.0  1.3  1124   180  ?  S    12:30   0:00 /usr/sbin/httpd 
 >> nobody   25938  0.6  6.3  2812   832  ?  D    12:30   0:00 perl
 >> /var/lib/httpd/htdocs/private/spsummary.cgi 
 >> nobody   25939  0.4  3.5  2212   460  ?  D    12:30   0:00 perl
 >> /var/lib/httpd/htdocs/private/splaceorder.cgi 
 >> nobody   25940  0.3  4.9  1840   640  ?  D    12:30   0:00 perl
 >> /var/lib/httpd/htdocs/private/srank.cgi 
 >> nobody   25943  0.4  6.8  2160   892  ?  D    12:30   0:00 perl
 >> /var/lib/httpd/htdocs/private/squote.cgi 
 >> nobody   25945  0.3  4.6  1768   608  ?  D    12:30   0:00 perl
 >> /var/lib/httpd/htdocs/private/squote.cgi 
 >> nobody   25947  0.0  2.4  1108   324  ?  S    12:30   0:00 /usr/sbin/httpd 
 >> 
 >> nobody   25948  0.0  2.3  1124   312  ?  S    12:30   0:00 /usr/sbin/httpd 
 >> nobody   25949  0.5  6.4  1768   840  ?  D    12:31   0:00 perl
 >> /var/lib/httpd/htdocs/private/srank.cgi 
 >> nobody   25950  0.2  5.6  1632   740  ?  D    12:31   0:00 perl
 >> /var/lib/httpd/htdocs/login.cgi 
 >> nobody   25951  0.0  3.8  1396   496  ?  D    12:31   0:00 perl
 >> /var/lib/httpd/htdocs/private/spsummary.cgi 
 >> nobody   25952  0.0  2.4  1124   320  ?  S    12:31   0:00 /usr/sbin/httpd 
 >> nobody   25954  0.0  2.6  1124   352  ?  S    12:31   0:00 /usr/sbin/httpd 
 >> nobody   25956  0.0  2.8  1116   372  ?  R    12:31   0:00 /usr/sbin/httpd 
 >> nobody   25957  0.5  3.7  1388   492  ?  R    12:31   0:00 perl
 >> /var/lib/httpd/htdocs/private/spsummary.cgi 
 >> nobody   25958  0.0  3.9  1396   512  ?  D    12:31   0:00 perl
 >> /var/lib/httpd/htdocs/private/index.cgi 
 >> nobody   25959  0.2  3.8  1396   504  ?  D    12:31   0:00 perl
 >> /var/lib/httpd/htdocs/private/splaceorder.cgi 
 >> nobody   25960  0.1  4.0  1396   524  ?  D    12:31   0:00 perl
 >> /var/lib/httpd/htdocs/private/squote.cgi 
 >> nobody   25961  0.0  2.6  1124   348  ?  S    12:31   0:00 /usr/sbin/httpd 
 >> nobody   25962  0.5  3.9  1396   516  ?  D    12:31   0:00 perl
 >> /var/lib/httpd/htdocs/login.cgi 
 >> nobody   25963  0.2  3.2  1108   428  ?  D    12:31   0:00 /usr/sbin/httpd 
 >> nobody   25964  0.0  3.1  1108   408  ?  D    12:31   0:00 /usr/sbin/httpd 
 >> nobody   25965  0.5  1.4  1372   188  ?  D    12:31   0:00 perl
 >> /var/lib/httpd/htdocs/private/index.cgi 
 >> nobody   25966  0.0  2.7  1108   356  ?  R    12:31   0:00 /usr/sbin/httpd 
 >> nobody   25967  0.0  1.4  1372   188  ?  D    12:31   0:00 perl
 >> /var/lib/httpd/htdocs/private/index.cgi 
 >> nobody   25968  0.0  2.9  1108   388  ?  R    12:31   0:00 /usr/sbin/httpd 
 >> nobody   25969  0.0  1.0  1372   140  ?  D    12:31   0:00 perl
 >> /var/lib/httpd/htdocs/login.cgi 
 >> nobody   25970  0.0  0.7  1376    92  ?  R    12:31   0:00 perl
 >> /var/lib/httpd/htdocs/private/scibank.cgi 
 >> nobody   25971  0.0  0.9  1096   124  ?  S    12:31   0:00 /usr/sbin/httpd 
 >> nobody   25972  0.0  1.0  1372   140  ?  D    12:31   0:00 perl
 >> /var/lib/httpd/htdocs/private/index.cgi 
 >> nobody   25973  0.0  1.3  1096   180  ?  S    12:31   0:00 /usr/sbin/httpd 
 >> nobody   25974 99.9  3.1  1116   408  ?  R    12:31   0:00 /usr/sbin/httpd 
 >> 
 >> nobody   25975 99.9  1.4  1096   184  ?  R    12:31   0:00 /usr/sbin/httpd 
 >> root         1  0.0  0.0   828     4  ?  S   Jul 16   0:20 (init)
 >> root         2  0.0  0.0     0     0  ?  SW  Jul 16   0:01 (kflushd)
 >> root         3  0.0  0.0     0     0  ?  SW< Jul 16   0:12 (kswapd)
 
 >> root         4  0.0  0.0     0     0  ?  SW  Jul 16   0:00 (nfsiod)
 >> root         5  0.0  0.0     0     0  ?  SW  Jul 16   0:00 (nfsiod)
 >> root         6  0.0  0.0     0     0  ?  SW  Jul 16   0:00 (nfsiod)
 >> root         7  0.0  0.0     0     0  ?  SW  Jul 16   0:00 (nfsiod)
 >> root        13  0.0  0.3   800    44  ?  D   Jul 16   0:10 /sbin/update 
 >> root        52  0.0  0.0   836     8  ?  S   Jul 16   0:03 (syslogd)
 >> root        55  0.0  0.0  1056     0  ?  SW  Jul 16   0:00 (klogd)
 >> root        59  0.0  0.0   824     0  ?  SW  Jul 16   0:01 (inetd)
 >> root        61  0.0  0.0   844     0  ?  SW  Jul 16   0:00 (lpd)
 >> root        64  0.0  0.4   872    64  ?  S   Jul 16   0:03
 >> /usr/sbin/rpc.mountd 
 >> root        66  0.0  0.5   892    72  ?  S   Jul 16   0:03
 /usr/sbin/rpc.nfsd 
 >> root        68  0.0  0.7   832    96  ?  S   Jul 16   0:04 /usr/sbin/crond
 >> -l10 
 >> root        74  0.0  0.0  1284     4  ?  S   Jul 16   0:01 (sendmail)
 >> root        94  0.0  0.0  1156     0   1 SW  Jul 16   0:00 (bash)
 >> root        95  0.0  0.0   816     0   2 SW  Jul 16   0:00 (agetty)
 >> root        96  0.0  0.0   816     0   3 SW  Jul 16   0:00 (agetty)
 >> root        97  0.0  0.0   816     0   4 SW  Jul 16   0:00 (agetty)
 >> root        98  0.0  0.0   816     0   5 SW  Jul 16   0:00 (agetty)
 >> root        99  0.0  0.0   816     0   6 SW  Jul 16   0:00 (agetty)
 >> root     23265  0.0  0.2  1108    28  ?  S    11:04   0:00 in.telnetd 
 >> root     23274  0.0  0.2  1156    32  p0 S    11:05   0:01 (bash)
 >> root     23408  0.0  0.0  1108     0  ?  SW   11:10   0:00 (in.telnetd)
 >> root     23409  0.0  0.0  1144     0  p1 SW   11:10   0:00 (bash)
 >> root     25607  0.0  0.6  1096    84  ?  S    12:25   0:00 /usr/sbin/httpd 
 >> root     25733  0.0  0.0  1296     8  ?  S    12:27   0:00 (sendmail)
 >> root     25899  0.0  0.1   808    24  ?  S    12:30   0:00 in.comsat 
 >> root     25953  0.0  2.1  1088   284  ?  D    12:31   0:00 /bin/sh -c
 >> /var/lib/httpd/htdocs/private/scripts/getIndexes.pl 
 >> root     25955  0.4  2.6   900   344  p0 R    12:31   0:00 ps -auxw 
 >> 
 >> 
 >> 
 >> At 09:47 AM 7/20/98 -0700, you wrote:
 >> >On 20 Jul 1998, Howard Yen wrote:
 >> >
 >> >> >Description:
 >> >> Our web server is setup with Linux running Apache 1.2.6. However
 everytime
 >> >> a CGI executed its leave as a zombie process (however it is killed
 >> automatically)
 >> >> a short while later. Also when the load on the web server starts to get
 >> high
 >> >
 >> >What do you mean by this?  Are you sure it is for _every_ CGI?  What kills
 >> >it automatically, and how much is "a short while" later?
 >> >
 >> >> (between 11:00 AM and 6:00PM Mon - Fri) the server hangs and I can see
a
 >> large
 >> >
 >> >What do you mean by "high load"?  How many simultaneous connections?  How
 >> >many requests per second?
 >> >
 >> >> amount of defunct process by using ps -auxww. I know that the server
 >> >> has not yet reach its load capacity (its an Pen II 300). And every once
 >> in a while
 >> >> a CGI will use 99.1 % of the CPU. I have check the CGIs and its not the
 >> CGI's
 
 >> >> problem because I have use the same CGI's under other setups (i.e. BSD
 >> with Apache
 >> >> and Solaris with Netscape) and they were all fine.
 >> >
 >> >Erm... your reasoning about how it can't be the CGI's problem doesn't
 >> >hold.  If the CGI is taking up most of the CPU, then that is probably a
 >> >problem in the CGI.  Just because you don't see it on other platforms
 >> >because the circumstances aren't right or there is some other difference
 >> >doesn't mean it can't be there.
 >> >
 >> >Are you running any virtual hosts?
 >> >
 >> >Please try upgrading to the current version of Apache.
 >> > 
 >> -----------------------
 >> Howard Yen
 >> howard@VirtualStockExchange.com
 >> Virtual Stock Exchange, Inc.
 >> (212)785-0888
 >> 
 >> Check out Virtual Stock Exchange!
 >> 
 >> http://www.VirtualStockExchange.com
 >> 
 > 
 -----------------------
 Howard Yen
 howard@VirtualStockExchange.com
 Virtual Stock Exchange, Inc.
 (212)785-0888
 
 Check out Virtual Stock Exchange!
 
 http://www.VirtualStockExchange.com
 

Mime
View raw message