Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 34366 invoked from network); 26 Sep 2004 00:39:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 26 Sep 2004 00:39:18 -0000 Received: (qmail 90820 invoked by uid 500); 26 Sep 2004 00:39:02 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 90785 invoked by uid 500); 26 Sep 2004 00:39:01 -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 90770 invoked by uid 99); 26 Sep 2004 00:39:01 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [80.229.52.226] (HELO hugin.webthing.com) (80.229.52.226) by apache.org (qpsmtpd/0.28) with ESMTP; Sat, 25 Sep 2004 17:39:00 -0700 Received: by hugin.webthing.com (Postfix, from userid 500) id A46901EE52; Sun, 26 Sep 2004 01:38:56 +0100 (BST) Received: from localhost (localhost [127.0.0.1]) by hugin.webthing.com (Postfix) with ESMTP id 9AFA41EAB5 for ; Sun, 26 Sep 2004 01:38:56 +0100 (BST) Date: Sun, 26 Sep 2004 01:38:56 +0100 (BST) From: Nick Kew To: users@httpd.apache.org In-Reply-To: <4155DC14.2010008@chezphil.org> Message-ID: References: <4155DC14.2010008@chezphil.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked Subject: Re: [users@httpd] How to limit simultaneous CGI processes? X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Sat, 25 Sep 2004, Phil Endecott wrote: > The CGI program uses lots of memory. Running one or two instances at > the same time is fine, but many more than that and the (virtual) machine > starts to swap and slows down horribly. So I'd like to limit the number > of simultaneous instances of the CGI process that Apache will start to a > small number (and queue, rather than discard, additional requests). > However, I don't want to limit the serving of static pages in any way. Perhaps the nearest thing to that available is mod_load_average, from http://force-elite.com/~chip/archives/mod_load_average-0.1.0-test3.tar.bz2 That works on load average. If you substitute a syscall that returns memory usage (read from /proc if TFM doesn't suggest anything better) it should do what you want. -- Nick Kew --------------------------------------------------------------------- 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