Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Mar 1996 10:23:18 -1000
From:      "Peter Stubbs" <peters@staidan.qld.edu.au>
To:        Joe Greco <jgreco@brasil.moneng.mei.com>
Cc:        freebsd-isp@freebsd.org
Subject:   Re: Well how do you guys cache & proxy html?
Message-ID:  <977B38C29F0@aidan.staidan.qld.edu.au>

next in thread | raw e-mail | index | archive | help

On 27 Mar 96, Joe Greco wrote:

> 
> Maybe you can describe the problem you are having in more detail...
> 

Thanks for your reply. Here's the original post

<------------------------
Hi all,

I'm having a problem with CERN http on my web server. Every so often I
check the swap use and find that it's too high, about 40% when 15-30%
is normal for 15-20 proxy web clients.

ps reveals that there are old httpd's hanging about with info like

166	    ??  I       1:41:02 /usr/local/libexec/httpd -r /usr....
2604    ??  IWN     0:00.10 /usr/local/libexec/httpd -r /usr....
2880    ??  IWN     0:00.11 /usr/local/libexec/httpd -r /usr....
2901    ??  IWN     0:00.12 /usr/local/libexec/httpd -r /usr....
12340   p1  R+      0:00.04 ps -ax

When I kill off the first httpd the rest also go, and the swap comes
back to normal. When I say first I mean 2604, not 166 which is started
by rc.local

Does anyone know why this happens, and if I can fix it. Is there any
danger of the system running out of memory from these hanging about,
particularly if I go away for a month?

Eeek! I've just run out of swap. Freebsd does a nice job of killing
processes when it runs out, but not the ones that are causing the
problem, just the ones that are asking for memory.

<----------------------------------

I know of a site using sparcs which has the same problem. They use a 
cron job to kill all httpd's & restart it.

Cheers,
Peter


Peter Stubbs, St Aidan's AGS.
ph +61-07-3379-9911, fax +61-07-3379-9432



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?977B38C29F0>