From owner-freebsd-questions Thu Mar 4 8:20:43 1999 Delivered-To: freebsd-questions@freebsd.org Received: from ns.cvzoom.net (ns.cvzoom.net [208.226.154.2]) by hub.freebsd.org (Postfix) with ESMTP id 0F1C315041 for ; Thu, 4 Mar 1999 08:20:25 -0800 (PST) (envelope-from heiphetz@cvzoom.net) Received: from night_flight (lcl30.cvzoom.net [208.226.155.30]) by ns.cvzoom.net (8.9.3/8.9.3) with SMTP id LAA23654 for ; Thu, 4 Mar 1999 11:06:50 -0500 (EST) Message-Id: <3.0.6.32.19990304112007.0094c6a0@cvzoom.net> X-Sender: heiphetz@cvzoom.net X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Thu, 04 Mar 1999 11:20:07 -0500 To: freebsd-questions@FreeBSD.ORG From: Alex Heiphetz Subject: Limiting resources Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. Thanks, A.Heiphetz To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message