Re: Limiting Cpu usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> wrote in message 
news:ea9da26c050410214064873770@xxxxxxxxxxxxxxxxx
> On Apr 10, 2005 9:27 AM, zini10 <zini10@xxxxxxxxxx> 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/ 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux