Date: Mon, 27 Nov 2000 21:53:11 -0800 From: faSty <fasty@i-sphere.com> To: "Alex N. Zhuravlev" <alx@scn.ru> Cc: freebsd-isp@freebsd.org Subject: Re: Limiting script memory usage Message-ID: <20001127215311.I82395@i-sphere.com> In-Reply-To: <3A23437E.189E8C7B@scn.ru>; from alx@scn.ru on Tue, Nov 28, 2000 at 12:32:46PM %2B0700 References: <3A23437E.189E8C7B@scn.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001127215311.I82395>