Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 66048 invoked from network); 3 Jan 2005 22:12:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 3 Jan 2005 22:12:52 -0000 Received: (qmail 93667 invoked by uid 500); 3 Jan 2005 22:12:21 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 93648 invoked by uid 500); 3 Jan 2005 22:12:21 -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: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 93635 invoked by uid 99); 3 Jan 2005 22:12:20 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of jslive@gmail.com designates 64.233.184.203 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.203) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 03 Jan 2005 14:12:16 -0800 Received: by wproxy.gmail.com with SMTP id 67so340381wri for ; Mon, 03 Jan 2005 14:12:14 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=h51BmD8yvuIqG+Uk/YJfT5dSClqRlGMTvwO2MkxXIz2fScfRvcKwbCuPLXUVSVThuLOIr8HEzllaZGTa/2eMpdFUqGYHAGoyPrn+GlgAtyp9iP6GWsayDL4BlEH+P9mi+FRceiutHc0n7+KE0/5xN0/RGvG1Y0GgzsfAvbju+yg= Received: by 10.54.49.36 with SMTP id w36mr49771wrw; Mon, 03 Jan 2005 14:12:14 -0800 (PST) Received: by 10.54.3.37 with HTTP; Mon, 3 Jan 2005 14:12:13 -0800 (PST) Message-ID: Date: Mon, 3 Jan 2005 17:12:14 -0500 From: Joshua Slive Reply-To: Joshua Slive To: users@httpd.apache.org In-Reply-To: <9466920BCA60D61186910002A5CDD0F404627D05@SFOS0157> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <9466920BCA60D61186910002A5CDD0F404627D05@SFOS0157> X-Virus-Checked: Checked Subject: Re: [users@httpd] Settings for memory conservation X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Mon, 3 Jan 2005 10:55:33 -0800, Harrell, Roger wrote: > I have a RH9 box running Apache with 512MB RAM. Occasionally the server gets > slammed by crawlers and ends up getting hosed up due to reaching full memory > usage, then going to swap. I've looked at the various docs on tuning Apache > and so forth, but can not seem to figure out how to set things to prevent > this occurrence. I understand that when I reduce maxchilds and related > settings when the server gets slammed web access will slow, but as it stands > right now all services on the box get hosed. Anyway, what occurs is that > several of the httpd child processes exceed 10% memory usage. When enough of > this happens I run into this problem. How can I ensure that total httpd > memory usage will never exceed say 450MB? > > I can not find any way of determining a good value for MaxClients. The docs > do not seem to by any help here. Any pointers? Normally you determine MaxClients by dividing your available RAM (minus requirements for the OS and other programs) by your average apache process size determined by ps or top. In your case, it seems like you also have some script that is using more than its fair share of RAM. You should probably identify the offending process (using ps/top), then use mod_status to figure out what script is the problem and fix the script. Joshua. --------------------------------------------------------------------- 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