From owner-freebsd-isp Wed Jun 5 10:31:31 2002 Delivered-To: freebsd-isp@freebsd.org Received: from buffnet4.buffnet.net (buffnet4.buffnet.net [205.246.19.13]) by hub.freebsd.org (Postfix) with ESMTP id D5EFF37B405 for ; Wed, 5 Jun 2002 10:31:26 -0700 (PDT) Received: from buffnet11.buffnet.net (buffnet11.buffnet.net [205.246.19.55]) by buffnet4.buffnet.net (8.9.3/8.8.7) with ESMTP id NAA01634; Wed, 5 Jun 2002 13:31:31 -0400 (EDT) (envelope-from shovey@buffnet.net) Date: Wed, 5 Jun 2002 13:31:20 -0400 (EDT) From: Stephen Hovey To: Mike Cc: freebsd-isp@FreeBSD.ORG Subject: Re: apache eating up swap In-Reply-To: <20020605112938.D55224@coloradosurf.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I believe (but am not certain) is a leak related to php. Just set the number of requests any one forked httpd will handle before dieing off to a low value like 5 or 10. On Wed, 5 Jun 2002, Mike wrote: > > Hope this isn't too OT, not sure if it's specific to > FreeBSD or not (I found both suggestions in searches). > > I'm running Apache/1.3.22 (Unix) PHP/4.0.6 mod_ssl/2.8.5 > OpenSSL/0.9.6b on FreeBSD 3.5S. > > > My webserver appears to use more and more swap as time goes > by. I've watched this via top and swapinfo. Graceful restarts > take care of things (frees up my swap). If no restart is > issued, apache will continue to eat up all swap and all other > processes have no memory to work with (choke --> die). I've > been lucky enough to spot it and restart before a full server > crash (I've heard this will happen). I find nothing in the > logs. I moved one of our 'heavy users' to another box and the > problem all but disappeared. I have a program running now that > monitors my swap and restarts apache, but clearly, that is not > the best solution. The site I moved did have some good sized > http file downloads (if that helps any other diagnostician). > > Sure does act like a memory leak. > > > Grateful for any clues. > > > TIA, > > mike > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message