sys_getloadavg(3) php man page | unix.com

Man Page: sys_getloadavg

Operating Environment: php

Section: 3

SYS_GETLOADAVG(3)							 1							 SYS_GETLOADAVG(3)

sys_getloadavg - Gets system load average

SYNOPSIS
array sys_getloadavg (void )
DESCRIPTION
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).
EXAMPLES
Example #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.'); } ?>
NOTES
Note This function is not implemented on Windows platforms. PHP Documentation Group SYS_GETLOADAVG(3)
Related Man Pages
pset_getloadavg(3c) - opensolaris
pset_getloadavg(3c) - centos
pset_getloadavg(3c) - php
pset_getloadavg(3c) - xfree86
pset_getloadavg(3c) - suse
Similar Topics in the Unix Linux Community
Forum Video Tutorial: How to Use Code Tags
Status of UNIX.COM Forum Transformation
Please Welcome Ravinder Singh to the Moderation Team
Denial Of Service Attack Update
Please Welcome Nicki Paul to the Moderator Team!