Date: Thu, 4 Mar 1999 10:27:02 -0600 From: Nathan Ahlstrom <nrahlstr@winternet.com> To: Alex Heiphetz <heiphetz@cvzoom.net>, freebsd-questions@FreeBSD.ORG Subject: Re: Limiting resources Message-ID: <19990304102702.C15184@winternet.com> In-Reply-To: <3.0.6.32.19990304112007.0094c6a0@cvzoom.net>; from Alex Heiphetz on Thu, Mar 04, 1999 at 11:20:07AM -0500 References: <3.0.6.32.19990304112007.0094c6a0@cvzoom.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Alex Heiphetz <heiphetz@cvzoom.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990304102702.C15184>