Home> System Tutorial> LINUX> body text

Linux performance monitoring

Christopher Nolan
Release: 2024-06-02 14:52:35
Original
972 people have browsed it

This article mainly talks about the operation of performance monitoring on Linux (CentOS).

1. Monitor cpu usage --uptime

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

Linux performance monitoring

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.

2. Monitor the usage of memory and swap partition--free

Linux performance monitoring

3. System disk usage--df

Here we use df -h to display capacity information in a humanized manner

Linux performance monitoring

4. Monitor network usage--ip and netstat

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.

Linux performance monitoring

5. Print network connection, routing table, network interface statistics and other information

Linux performance monitoring

6. Monitor process usage-ps and top commands

ps
View current process information (ps has different syntax in different versions, here is centos)
ps -e View all process information

Linux performance monitoring

ps -ef displays process information in full format

Linux performance monitoring

top Dynamically view process information
top -d refresh interval, default 3 seconds

Linux performance monitoring

top -p View the pid of the specified process

Linux performance monitoring

The above is the detailed content of Linux performance monitoring. For more information, please follow other related articles on the PHP Chinese website!

source:linuxprobe.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!