From owner-freebsd-questions@FreeBSD.ORG Sat Jun 11 18:40:03 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 936DD16A41C for ; Sat, 11 Jun 2005 18:40:03 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C0CE43D49 for ; Sat, 11 Jun 2005 18:40:03 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id 8ED285DB2; Sat, 11 Jun 2005 14:40:02 -0400 (EDT) Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 70128-10; Sat, 11 Jun 2005 14:40:01 -0400 (EDT) Received: from [192.168.1.101] (pool-68-161-69-6.ny325.east.verizon.net [68.161.69.6]) by pi.codefab.com (Postfix) with ESMTP id 2A04A5C45; Sat, 11 Jun 2005 14:40:00 -0400 (EDT) Message-ID: <42AB3001.1000004@mac.com> Date: Sat, 11 Jun 2005 14:40:01 -0400 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 X-Accept-Language: en-us, en MIME-Version: 1.0 To: David Banning References: <20050611142103.GA77709@skytracker.ca> In-Reply-To: <20050611142103.GA77709@skytracker.ca> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at codefab.com Cc: questions@freebsd.org Subject: Re: httpd and memory usage X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Jun 2005 18:40:03 -0000 David Banning wrote: > I seem to have a lot of memory being eaten by httpd (part output of top); > > 62310 nobody 18 0 26792K 21516K lockf 0:04 0.00% 0.00% httpd [ ... ] > I have changed the timeout in httpd.conf from 300 to 100 which does not > seem to help. It wouldn't. Apache is normally run in a prefork mode, which means it keeps lots of children (default is 5, plus the master) running all of the time. > Any ideas to have httpd timeout sooner to preserve memory? If you want to reduce the memory usage, avoid using mod_perl or PHP. httpd ought to shrink down to ~5MB or so per process. -- -Chuck