Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Sep 2001 00:31:36 +0800
From:      "edwin chan" <slack@suntop-cn.com>
To:        "Nickolay A.Kritsky" <nkritsky@internethelp.ru>, <freebsd-security@FreeBSD.ORG>
Subject:   Re: Need help with limits(1)
Message-ID:  <003801c1355f$115912e0$9201a8c0@home.net>
References:  <48396009431.20010904114449@internethelp.ru>

next in thread | previous in thread | raw e-mail | index | archive | help

maybe lower you apache or perl processes by "renice"



----- Original Message ----- 
From: "Nickolay A.Kritsky" <nkritsky@internethelp.ru>
To: <freebsd-security@FreeBSD.ORG>
Sent: Tuesday, September 04, 2001 3:44 PM
Subject: Need help with limits(1)


>   Hi, all.
>   I have a webserver running on FreeBSD 3.3. One of the perl scripts
> located there has some bug, that puts him in the infinite loop. This
> causes my webserver to stall, so that the only way to reboot is
> hardware reset. I want to restrict user httpd to use no more than
> 75% of CPU time. I read man limits(1) and man getrlimit(2) but they
> only talk about limiting cputime in seconds, but not percents. It
> means that I can restrict httpd process to run no more than 10
> seconds, but in this 10 seconds it will have access to all CPU power
> of the computer, making administrative work quite impossible. How
> can I add percent-based cputime restrictions for various users and
> login classes?
> 
>   Any help is very good.
> 
> ;-------------------------------------------
> ; NKritsky
> ; SysAdmin InternetHelp.Ru
> ; http://www.internethelp.ru
> ; mailto:nkritsky@internethelp.ru
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-security" in the body of the message
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003801c1355f$115912e0$9201a8c0>