Date: Tue, 29 Dec 1998 23:16:41 +0000 From: Ben Smithurst <ben@scientia.demon.co.uk> To: "Mark E. Rekai" <maxiter@inetu.net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: setrlimit and forks Message-ID: <19981229231641.D17162@scientia.demon.co.uk> In-Reply-To: <4.1.19981229163246.0094ad60@wopr.inetu.net> References: <4.1.19981229163246.0094ad60@wopr.inetu.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981229231641.D17162>