开发者

How do I find out a server's load?

I'm creating a php script that will capture certain information from the server and database at regular intervals. The server is running LAMP.

Is there a way to output the server load, or other statistics that may i开发者_C百科ndicate the performance or load on the server including mysql?


Just try

cat /proc/loadavg

or

uptime

which printout the current load of the servers 1 min / 10 min / 15 min interval.

May be you should take a look to http://munin-monitoring.org/ or may be nagios

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜