You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Dan Wilga <dw...@MtHolyoke.edu> on 2004/07/30 15:41:29 UTC

[users@httpd] Re: HELP: httpd (BOTH 1.3X AND 2.0X)always eats up all the avaliable swap And hang the system!!

>From: "BBghost" <bb...@yahoo.com.hk>
>Subject: [users@httpd]HELP: httpd (BOTH 1.3X AND 2.0X)always eats up 
>all the avaliable swap And hang the system!!
>I want someone to help me to solve this problem, my httpd always eats up all
>the available swap the make the machine Down. It always happens especially
>in the busy time. I have rebuilded for many times and used to use other
>difference version and the problem is still going on.

First, please don't post entire server logs to this list. There are 
probably hundreds of people who read this list, and we all ended up 
receiving your entire log twice. It was twice, because you also had 
HTML formatting turned on in your email client, and this bloated the 
message to over 1 Mb. Instead, put the log somewhere on your web 
server in an HTML or text document, and provide a link to that page.

Now, as to your problem: I think your problem is that a 
frequently-run CGI program is hanging. This leaves the process active 
in memory, so Apache has to keep spawning more and more children, 
every time a new request comes in. Eventually, this leads to swapping 
and the machine comes to a crawl.

I'd suggest you view the server-status, at:

   http://yourhost/server-status

This will tell you what requests are being processed. I suspect 
you'll see a whole bunch of the same, hung CGI script. The solution 
is to figure out why the script is hanging, and fix it.
-- 
Dan Wilga                                         dwilga@mtholyoke.edu
Web Technology Specialist                     http://www.mtholyoke.edu
Mount Holyoke College                                Tel: 413-538-3027
South Hadley, MA  01075            "Who left the cake out in the rain?"

---------------------------------------------------------------------
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