Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Nov 2000 12:32:46 +0700
From:      "Alex N. Zhuravlev" <alx@scn.ru>
To:        freebsd-questions@FreeBSD.ORG, freebsd-isp@FreeBSD.ORG
Subject:   Limiting script memory usage
Message-ID:  <3A23437E.189E8C7B@scn.ru>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A23437E.189E8C7B>