Received: by taz.hyperreal.com (8.6.12/8.6.5) id GAA01906; Wed, 10 Jul 1996 06:51:48 -0700 Received: from sierra.zyzzyva.com by taz.hyperreal.com (8.6.12/8.6.5) with ESMTP id GAA01901; Wed, 10 Jul 1996 06:51:44 -0700 Received: from zyzzyva.com (localhost [127.0.0.1]) by sierra.zyzzyva.com (8.7.5/8.6.11) with ESMTP id IAA13013 for ; Wed, 10 Jul 1996 08:51:42 -0500 (CDT) Message-Id: <199607101351.IAA13013@sierra.zyzzyva.com> To: new-httpd@hyperreal.com Subject: Re: Oops explained In-reply-to: ben's message of Wed, 10 Jul 1996 12:40:42 +0100. <9607101240.aa11285@gonzo.ben.algroup.co.uk> X-uri: http://www.zyzzyva.com/ Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 10 Jul 1996 08:51:41 -0500 From: Randy Terbush Sender: owner-new-httpd@apache.org Precedence: bulk Reply-To: new-httpd@hyperreal.com > Further investigation has revealed that my problem is not Apache but the > CGI+SCO 5 (it seems). What I hadn't made clear before was that the server in > question was a test server, and was handling but a single request (which is > why MaxClients didn't really matter). > > Anyway, the problem was caused by the rogue CGI growing without limit. When the > process hits around 60 MB, SCO stops working. Not sure why it gives me "too > many process" errors when, in fact, the number of processes is unchanged (out > of swap space, perhaps?). > > Anyway, this made me wonder about using setrlimit() to stop the process from > running away. I then wondered whether, in fact, Apache should (optionally) use > setrlimit() to limit _all_ CGIs? > > Thoughts? This is a safety net that I had planned to add to the http_exec.c and setuid exec stuff that Jason and I have been working on. It would then set these limits for included execs, cgi execs etc.