Query: sys_getloadavg
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
SYS_GETLOADAVG(3) 1 SYS_GETLOADAVG(3) sys_getloadavg - Gets system load averageSYNOPSISarray sys_getloadavg (void )DESCRIPTIONReturns 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 VALUESReturns an array with three samples (last 1, 5 and 15 minutes).EXAMPLESExample #1 A sys_getloadavg(3) example <?php $load = sys_getloadavg(); if ($load[0] > 80) { header('HTTP/1.1 503 Too busy, try again later'); die('Server too busy. Please try again later.'); } ?>NOTESNote This function is not implemented on Windows platforms. PHP Documentation Group SYS_GETLOADAVG(3)
Related Man Pages |
---|
pset_getloadavg(3c) - sunos |
pset_getloadavg(3c) - v7 |
pset_getloadavg(3c) - plan9 |
pset_getloadavg(3c) - debian |
pset_getloadavg(3c) - suse |