From owner-freebsd-isp Mon Nov 27 21:54: 6 2000 Delivered-To: freebsd-isp@freebsd.org Received: from www.i-sphere.com (www.i-sphere.com [207.126.121.224]) by hub.freebsd.org (Postfix) with ESMTP id 339C637B479 for ; Mon, 27 Nov 2000 21:54:04 -0800 (PST) Received: (from fasty@localhost) by www.i-sphere.com (8.11.0/8.11.0) id eAS5rBU29451; Mon, 27 Nov 2000 21:53:11 -0800 (PST) (envelope-from fasty) Date: Mon, 27 Nov 2000 21:53:11 -0800 From: faSty To: "Alex N. Zhuravlev" Cc: freebsd-isp@freebsd.org Subject: Re: Limiting script memory usage Message-ID: <20001127215311.I82395@i-sphere.com> References: <3A23437E.189E8C7B@scn.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3A23437E.189E8C7B@scn.ru>; from alx@scn.ru on Tue, Nov 28, 2000 at 12:32:46PM +0700 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, the Apache webserver runs on nobody/nobody (uid/gid). try set up on nobody statement instead webcl. PS. excuse me Im brand new to this discussion forums :) -trev On Tue, Nov 28, 2000 at 12:32:46PM +0700, Alex N. Zhuravlev wrote: > Hi ! > I've recently got a proplem. I am running Apache on FreeBSD and > maintaining virtual web-servers. For each server there is a specific > user, and using apache suexec, cgi cripts are running from those > specific users. One of them got a perl script with memory leak - so > script gets all the memory, than swap and hangs all the host at final. > Here is the question: is there any way to limit resourses via OS > (memory, cpu) for that specific user or group/class of users ? > I've tried to make a group in login.conf: > ------------------------------------------------------------------------- > webcl|Web clients:\ > :cputime=30m:\ > :datasize=8M:\ > :stacksize=2M:\ > :memorylocked=4M:\ > :memoryuse=8M:\ > ------------------------------------------------------------------------- > and assigning those users to login class webcl. This doesn't help - > again script tooks all the memory. Scripts are running from Apache, so > using nice and limit, I guess, is unappliable. > > Maybe somebody has got a solution ??? > > Answer please direct, cause I am out of freebsd-questions now. > Thanks for any help. > > Alex N. Zhuravlev. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message