Date: Tue, 04 Sep 2001 16:28:09 +0300 From: Krassimir Slavchev <krassi@bulinfo.net> To: "Nickolay A.Kritsky" <nkritsky@internethelp.ru> Cc: freebsd-security@FreeBSD.ORG Subject: Re: Need help with limits(1) Message-ID: <3B94D6E9.A2457D9A@bulinfo.net> References: <48396009431.20010904114449@internethelp.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] Add in apachectl line: eval `limits -e -C daemon` >/dev/null 2>&1 man login.conf and try to limit memmoryuse! "Nickolay A.Kritsky" wrote: > 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 -- Krassimir Slavchev Bulinfo Ltd. krassi@bulinfo.net (+359-2)963-3652 http://www.bulinfo.net (+359-2)963-3764 [-- Attachment #2 --] 0 *H 010 + 0 *H 0~0Ue0 *H 010 UZA10UWestern Cape10U Cape Town10 U Thawte10UCertificate Services1(0&UPersonal Freemail RSA 2000.8.300 010730111243Z 020730111243Z0D10UThawte Freemail Member1!0 *H krassi@bulinfo.net00 *H 0 Pc(H[ђ15gAL,EU>9c32iN0~dz>KIeR?oLKaYF7]pџwֱ99G!+4ML /0-0U0krassi@bulinfo.net0U0 0 *H DӶr;.YOxH* 1 ?Sg߆(#ST<M g\Un/Q< ~=HZ#ge0Q`szQ0)00 *H 010 UZA10UWestern Cape10U Cape Town10U Thawte Consulting1(0&UCertification Services Division1$0"UThawte Personal Freemail CA1+0) *H personal-freemail@thawte.com0 000830000000Z 020829235959Z010 UZA10UWestern Cape10U Cape Town10 U Thawte10UCertificate Services1(0&UPersonal Freemail RSA 2000.8.3000 *H 0 32c %E>nx'gڈD)c5*mp<ܮto034qmOe KaU5u'rװ|CBPQ<9TIf - ki N0L0)U"0 010UPrivateLabel1-2970U0 0U0 *H so&e4KYbDI j&*bctmSK8P:l4撜n# KrgPo.XPWՈ9[9}4%MjÑ/<RbH100010 UZA10UWestern Cape10U Cape Town10 U Thawte10UCertificate Services1(0&UPersonal Freemail RSA 2000.8.30Ue0 + 0 *H 1 *H 0 *H 1 010904132811Z0# *H 14<d>,@w0R *H 1E0C0 *H 0*H 0+0 *H @0 *H (0 *H f\fW[jSach[>@e֤ caQN;ך:Bݹ4^DL`Մ8qnFgqA&b Ei#L.?|Q%zs͖91ZX
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B94D6E9.A2457D9A>
