JavaScript Editor Javascript debugger     Website design 


Gets system load average (PHP 5 >= 5.1.3)
array sys_getloadavg ( )

Returns three samples representing the average system load (the number of processes in the system run queue) over the last 1, 5 and 15 minutes, respectively.

Return Values

Returns an array with three samples (last 1, 5 and 15 minutes).


Example 1363. A sys_getloadavg() example

= sys_getloadavg();
if (
$load[0] > 80) {
header('HTTP/1.1 503 Too busy, try again later');
'Server too busy. Please try again later.');



This function is not implemented on Windows platforms.