Received: (from majordom@localhost) by hyperreal.org (8.8.5/8.8.5) id JAA26246; Wed, 9 Jul 1997 09:04:13 -0700 (PDT) Received: from ias1.iacnet.com (ias1.iacnet.com [140.244.1.69]) by hyperreal.org (8.8.5/8.8.5) with ESMTP id JAA26214 for ; Wed, 9 Jul 1997 09:03:52 -0700 (PDT) Received: from circus.med.iacnet.com by ias1.iacnet.com (PMDF V5.0-5 #16455) id <01IL161QVQK000VNO5@ias1.iacnet.com> for new-httpd@apache.org; Wed, 09 Jul 1997 12:00:46 -0500 (EST) Received: by circus.med.iacnet.com ((IBM OS/2 SENDMAIL VERSION 1.3.14/1.0) id AA6900; Wed, 09 Jul 1997 11:59:29 -0400 Received: from IACNET with "Lotus Notes Mail Gateway for SMTP" id 3D4D616E11A961C3852564CF0056971E; Wed, 09 Jul 1997 11:59:26 +0000 Date: Wed, 09 Jul 1997 11:53:31 +0000 From: George Carrette Subject: Re: memory allocations stuff (question) To: Stanley Gambarin Cc: new-httpd Message-id: <9707091559.AA6900@circus.med.iacnet.com> MIME-version: 1.0 Content-type: Text/Plain Content-transfer-encoding: 7BIT Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org stanleyg@cs.bu.edu (Stanley Gambarin) asks: >Second: would it be reasonable to provide a limit on the maximum amount >of memory that the server may allocate (this may prevent infinite loops >taking down whole machine with them). The server may just exit if the >maximum amount of memory is reached (configurable at runtime) ? If you apply the patches at http://cpartner.iacnet.com/apache/ then the RLimitMEM configuration parameter used in the global context in httpd.conf will be in effect for all children of the initial httpd process. Currently the RLimitMEM parameter only applies to cgi scripts and server-side-include exec statements. When a process runs out of RLimitMEM the result is that malloc returns NULL. I've been asked to invent new config parameter names before these patches can be applied to the Apache sources, but I haven't been able to think up a good name, nobody has suggested one, and I have a preference myself to cleaning up the documentation so that it is more carefully worded and accurate.