This article focuses on performance performance monitoring on Linux (CentOS).
1. Monitor CPU Usage--uptime
The command will print out how long the current time system has been running. Average system load of logged on users
The load here is per unit of time, the CPU waits in the queue, evaluates how many processes are waiting, the more processes waiting, the busier the CPU.
2. Monitoring the use of memory and swap partitions--free
3. Usage of system disk--DF
Here we use Df-h to personalize the display of capacity information
4. Monitor network usage--ip and netstat
IP can view the interface information of the network card, in CentOS, the network card is not unified command for ETHX, but will check the host hardware information, according to different network card to make different commands, netstat command can see the server open port information and network link status.
5. Print network connection, routing table, network interface statistics and other information
6. Monitor process usage--ps and top commands
Ps
View current process information (PS has different syntax in different versions, this is CentOS)
PS-E View All process information
Ps-ef displaying process information in full format
Top Dynamic View process information
top-d Refresh interval time, default 3 seconds
Top-p viewing the PID of a specified process