From owner-freebsd-questions Tue Dec 29 16:30:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA04915 for freebsd-questions-outgoing; Tue, 29 Dec 1998 16:30:04 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA04858 for ; Tue, 29 Dec 1998 16:29:59 -0800 (PST) (envelope-from ben@scientia.demon.co.uk) Received: from ben by scientia.demon.co.uk with local (Exim 2.10 #3) id 0zv8NV-0004Uj-00; Tue, 29 Dec 1998 23:16:41 +0000 Date: Tue, 29 Dec 1998 23:16:41 +0000 From: Ben Smithurst To: "Mark E. Rekai" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: setrlimit and forks Message-ID: <19981229231641.D17162@scientia.demon.co.uk> References: <4.1.19981229163246.0094ad60@wopr.inetu.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95i In-Reply-To: <4.1.19981229163246.0094ad60@wopr.inetu.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mark E. Rekai wrote: > I've got a C program which is used to run apache. In a virtual server > setting, we end up with quite a few instances of apache and would like to > control their resource consumption. You can configure the maximum number of processes Apache will allow to run at once. Read the Apache manual. > If I use setrlimit in my C program before apache is called, will this > successfully set limits should a chile process fork (like apache)? Maybe, but you might also get error messages from Apache. It would probably be better to use Apache's builtin limiting options. -- Ben Smithurst ben@scientia.demon.co.uk send a blank message to ben+pgp@scientia.demon.co.uk for PGP key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message