From owner-freebsd-questions Thu Mar 4 8:27:42 1999 Delivered-To: freebsd-questions@freebsd.org Received: from icicle.winternet.com (icicle.winternet.com [198.174.169.13]) by hub.freebsd.org (Postfix) with ESMTP id 6BBA414BCC for ; Thu, 4 Mar 1999 08:27:37 -0800 (PST) (envelope-from nrahlstr@mail.winternet.com) Received: (from adm@localhost) by icicle.winternet.com (8.8.8/8.8.8) id KAA22690; Thu, 4 Mar 1999 10:27:11 -0600 (CST) Received: from tundra.winternet.com(198.174.169.11) by icicle.winternet.com via smap (V2.0) id xma022663; Thu, 4 Mar 99 10:27:02 -0600 Received: (from nrahlstr@localhost) by tundra.winternet.com (8.8.7/8.8.4) id KAA16150; Thu, 4 Mar 1999 10:27:03 -0600 (CST) Message-ID: <19990304102702.C15184@winternet.com> Date: Thu, 4 Mar 1999 10:27:02 -0600 From: Nathan Ahlstrom To: Alex Heiphetz , freebsd-questions@FreeBSD.ORG Subject: Re: Limiting resources References: <3.0.6.32.19990304112007.0094c6a0@cvzoom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <3.0.6.32.19990304112007.0094c6a0@cvzoom.net>; from Alex Heiphetz on Thu, Mar 04, 1999 at 11:20:07AM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Alex Heiphetz wrote: > Hi: > > It's probably pretty common thing, but I can't find it. > I want to limit usage of resources (i.e. memory, CPU time) to > some processes run by users. I.e. I want to avoid cituation > when run-away CGI brings the whole server to the knees, therefore > I want to limit each CGI process (which on my box is run as > user httpd) to, say, 1 MB of memory and I want to kill it after > it has been run after, say, 10 sec, or 2 CPU sec. Possible? > I think it is, but I can't figure out how. Yes it is possible. Look at /etc/login.conf and 'man 5 login.conf' for some preliminary details. Good Luck, Nathan -- Nathan Ahlstrom nrahlstr@winternet.com http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message