Re: Limiting Cpu usage
| From: | Philip Hallstrom | Date: | Sun, 10 Apr 2005 15:16:42 +0000 |
| Subject: | Re: Limiting Cpu usage | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-212763@lists.php.net to get a copy of this message | ||
You might want to rethink your strategy. Consider the instance in which only *one* person is hitting your server. That one person *will* get 100% of your CPU since nothing else is going on at the time, so the system might as well give them all the CPU to get their task done sooner.
You don't want to restrict them in that case do you?
Maybe look into bandwidth limiting, connection limiting, php per script memory usage, and php timeout options...
Good luck!
On Sun, 10 Apr 2005, zini10 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? thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php