Browsing articles from "September, 2010"
Sep
17
2010

Check server load in php on linux

First method would be It basically shows the content of the file /proc/loadavg. It can be checked from terminal/shell like this : Output : 0.04 0.08 0.11 1/381 3584 There are 5 fields. 1. Average load on server in past 1 minute. 2. Average load on server in past 5 minutes. 3. Averate load on server in past 10 minutes. 4. Running processes/Total processes 5. Last process id that ran. Another useful command is uptime. [...]