sys_getloadavg

PHP 5 >= 5.1.3, PHP 7, PHP 8
sys_getloadavg - Gets system load average
Manual
Code Examples

sys_getloadavg( ): array|false

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. Returns false on failure.

Parameters

This function has no parameters.

Return Values

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

Notes

Note:

This function is not implemented on Windows platforms.

Example of sys_getloadavg

Show all examples for sys_getloadavg

PHP Version:


Function sys_getloadavg:

Miscellaneous Functions Functions

Most used PHP functions