From owner-freebsd-isp Wed Mar 27 16:37:06 1996 Return-Path: owner-isp Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id QAA17415 for isp-outgoing; Wed, 27 Mar 1996 16:37:06 -0800 (PST) Received: from mail.barrnet.net (mail.barrnet.net [131.119.246.7]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id QAA17407 for ; Wed, 27 Mar 1996 16:36:59 -0800 (PST) Received: from seraglio.staidan.qld.edu.au (staidans.client.uq.edu.au [130.102.39.106]) by mail.barrnet.net (8.7.5/MAIL-RELAY-LEN) with SMTP id QAA23409 for ; Wed, 27 Mar 1996 16:36:48 -0800 (PST) Received: from aidan.staidan.qld.edu.au (aidan.staidan.qld.edu.au [203.12.39.2]) by seraglio.staidan.qld.edu.au (8.6.12/8.6.12) with ESMTP id KAA12296; Thu, 28 Mar 1996 10:23:34 +1000 Received: from AIDAN/SpoolDir by aidan.staidan.qld.edu.au (Mercury 1.21); 28 Mar 96 10:23:35 -1000 Received: from SpoolDir by AIDAN (Mercury 1.21); 28 Mar 96 10:23:27 -1000 From: "Peter Stubbs" Organization: St Aidan's A.G.S. To: Joe Greco Date: Thu, 28 Mar 1996 10:23:18 -1000 Subject: Re: Well how do you guys cache & proxy html? CC: freebsd-isp@freebsd.org Priority: normal X-mailer: Pegasus Mail for Windows (v2.23) Message-ID: <977B38C29F0@aidan.staidan.qld.edu.au> Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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