This article mainly talks about the operation of performance monitoring on Linux (CentOS).
This command will print out the current time, how long the system has been running, the current number of logged-in users, and the average system load
The load here is the evaluation of how many processes are waiting in the CPU waiting queue per unit time. The more waiting processes, the busier the CPU.
Here we use df -h to display capacity information in a humanized manner
ip can check the interface information of the network card. In centos, the network card does not use the unified command ethx. Instead, it checks the host hardware information and makes different commands according to different network cards. The netstat command can check the port information opened by the server and The link status of the network.
ps
View current process information (ps has different syntax in different versions, here is centos)
ps -e View all process information
ps -ef displays process information in full format
top Dynamically view process information
top -d refresh interval, default 3 seconds
top -p View the pid of the specified process
The above is the detailed content of Linux performance monitoring. For more information, please follow other related articles on the PHP Chinese website!