detecting server 'over'load
Posted: Fri Oct 16, 2009 4:47 pm
Is there a way to detect when a server is overloaded?
It's easy to get the server average load .. but this number means almost nothing to a php script because its very dependent on the number of CPUs the server has.
What I'm looking for is a way to add a condition to a page that requires a lot of resources like a db search page, this condition will stop the page and display some error message if the server load is high.
It's easy to get the server average load .. but this number means almost nothing to a php script because its very dependent on the number of CPUs the server has.
What I'm looking for is a way to add a condition to a page that requires a lot of resources like a db search page, this condition will stop the page and display some error message if the server load is high.