Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 993 invoked from network); 20 Nov 2007 14:47:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Nov 2007 14:47:52 -0000 Received: (qmail 38337 invoked by uid 500); 20 Nov 2007 14:47:29 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 38324 invoked by uid 500); 20 Nov 2007 14:47:29 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 38313 invoked by uid 99); 20 Nov 2007 14:47:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Nov 2007 06:47:29 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sa@farpost.com designates 80.92.162.107 as permitted sender) Received: from [80.92.162.107] (HELO qcf.farpost.ru) (80.92.162.107) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Nov 2007 14:47:32 +0000 Received: from localhost (qcf.farpost.ru [127.0.0.1]) by qcf.farpost.ru (Postfix) with ESMTP id C6C432777C for ; Wed, 21 Nov 2007 00:47:10 +1000 (VLAT) X-Virus-Scanned: amavisd-new at qcf.farpost.ru Received: from qcf.farpost.ru ([127.0.0.1]) by localhost (qcf.farpost.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T4YpQ0QV++9Z for ; Wed, 21 Nov 2007 00:47:10 +1000 (VLAT) Received: by qcf.farpost.ru (Postfix, from userid 501) id 914CD27774; Wed, 21 Nov 2007 00:47:10 +1000 (VLAT) X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on qcf.farpost.ru X-Spam-Level: Received: from [192.168.1.2] (unknown [77.87.119.65]) by qcf.farpost.ru (Postfix) with ESMTP id 24C592776F for ; Wed, 21 Nov 2007 00:47:09 +1000 (VLAT) Message-ID: <4742F264.9070104@farpost.com> Date: Wed, 21 Nov 2007 00:42:44 +1000 From: Sergey Avdushkin User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: users@httpd.apache.org References: <016701c82b81$a8c2e6a0$6501a8c0@GRANT> In-Reply-To: <016701c82b81$a8c2e6a0$6501a8c0@GRANT> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-2.6 required=7.0 tests=BAYES_00 autolearn=ham version=3.1.7 Subject: Re: [users@httpd] Apache Memory Usage, > Does any one have any good tips on makeing apache lean and mean from a > memory perspective? > > I am using apaceh 2.2 on FreeBSD 6.2. > > Each one of my deamons is using about 1.8 - 2.5 % of available memory. > (1 GB). Disable any modules you do not use. If you need PHP, try to use php-fcgi instead of mod_php, this could save you a lot of memory. Strip everything you do not need from VirtualHost entries (they generate a lot overhead; on one of my servers, there are ~1000 VirtualHosts & I have now 25mb per Apache child on it). If Apache starts with low memory usage, but grow up after some time -- try to reduce MaxRequestsPerChild. With prefork, try to reduce Min/MaxSpareServers, this would slow things a little, but should free some memory. Also, you could decrease MaxClients to some value, that for sure would not put your server out of memory (i.e. it less then 40 in your current setup). -- Sergey Avdushkin. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org