Re: Limiting Cpu usage

From: Date: Mon, 11 Apr 2005 10:05:10 +0000
Subject: Re: Limiting Cpu usage
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-212790@lists.php.net to get a copy of this message
ok, that will do some of the trick , but still , a user can just write a script which: for($i=0;$i<99999999;$i++) { $x=$x+1; } or something and refresh it the whole time and really slow down everybody else.... "Greg Donald" <destiney@gmail.com> wrote in message news:ea9da26c050410214064873770@mail.gmail.com... > On Apr 10, 2005 9:27 AM, zini10 <zini10@012.net.il> wrote: >> hello, how can i limit cpu usage for shared hosting enviroment? >> i mean , im hosting serveal sites and wish for all php scripts to have >> (for >> example) no more than 5% of cpu usage so no one can bomb my server. >> im currently using php as a module , i know i can do it if ill use php as >> a >> cgi and limit apache with cpu usage , but wont it decrease dramtically my >> preformance? > > You might want to look at mod_dosevasive. > > http://nanoweb.si.kz/manual/mod_dosevasive.html > > > -- > Greg Donald > Zend Certified Engineer > http://destiney.com/

« previous php.general (#212790) next »