From owner-freebsd-questions@FreeBSD.ORG Tue Jun 28 16:58:43 2005 Return-Path: X-Original-To: freebsd-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 3E4A116A41C for ; Tue, 28 Jun 2005 16:58:43 +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 0AC0A43D1F for ; Tue, 28 Jun 2005 16:58:42 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id 304AF5EE9; Tue, 28 Jun 2005 12:58:42 -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 22126-10; Tue, 28 Jun 2005 12:58:32 -0400 (EDT) Received: from [192.168.1.3] (pool-68-161-54-113.ny325.east.verizon.net [68.161.54.113]) by pi.codefab.com (Postfix) with ESMTP id 3B6095E33; Tue, 28 Jun 2005 12:58:32 -0400 (EDT) Message-ID: <42C181B9.602@mac.com> Date: Tue, 28 Jun 2005 12:58:33 -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: Grant References: <20050628021524.7ba2df56@anubis> <42C0ADC8.1060204@mac.com> <20050628103028.6c87d666@anubis> In-Reply-To: <20050628103028.6c87d666@anubis> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at codefab.com Cc: freebsd-questions@freebsd.org Subject: Re: Small HTTPD + PHP4 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: Tue, 28 Jun 2005 16:58:43 -0000 Grant wrote: > On Mon, 27 Jun 2005 21:54:16 -0400 > Chuck Swiger wrote: [ ... ] > The only reason i'm moving from apache is that apache has started (well > proberly did but i didnt notice) eating large amounts of ram, even when > idle, as i type this there is 4 apache processes using 29mb each, now > when there is a few people on my forum/site that goes up to around > 12processes again all using 29mb which adds up to being quite a big > chunck of my ram. (384mb just for apache). Sounds about right. If you run Apache without enabling PHP, you'll discover that each httpd takes around 5MB per process, less than 20% of the size you are seeing. > So i either want to get php working on a smaller httpd or maybe fix > apache. You don't seem to understand the problem: it has nothing to do with apache. If you try to get PHP working on a smaller httpd, you will end up with an httpd (or the equivalent in external fast-cgi processes) that uses lots of resources, because PHP itself uses lots of resources. PHP and small/lightweight doesn't happen. PHP is bulky, slow, inefficient, and has a security record which resembles that of Windows or sendmail. -- -Chuck