Monitoring system performance is essential for maintaining the health and efficiency of your CentOS system. Here are some commonly used tools for monitoring system performance:
1. top:
topis a command-line utility that provides real-time information about system resource usage, including CPU, memory, and processes.- Run
topin the terminal to display a dynamic view of system activity. Pressqto quit.
2. vmstat:
vmstatis a command-line utility that provides information about virtual memory statistics, including CPU, memory, paging, and disk I/O.- Run
vmstatin the terminal to display a summary of system statistics. For example:
This command displays statistics every 1 second.vmstat 1
3. sar:
sar(System Activity Reporter) is a command-line utility that collects, reports, and saves system activity information.- Run
sarwith specific options to display CPU, memory, disk, and network statistics. For example:
This command displays CPU utilization statistics every 1 second.sar -u 1
4. iostat:
iostatis a command-line utility that reports CPU and input/output statistics for devices and partitions.- Run
iostatwith specific options to display disk I/O statistics. For example:
This command displays disk I/O statistics every 1 second.iostat -d 1
5. free:
freeis a command-line utility that displays information about system memory usage and swap space.- Run
freein the terminal to display memory statistics, including total, used, and free memory.
6. df:
dfis a command-line utility that displays information about disk space usage for file systems.- Run
dfin the terminal to display disk space usage statistics for all mounted file systems.
7. netstat:
netstatis a command-line utility that displays network statistics, including active network connections, routing tables, and interface statistics.- Run
netstatwith specific options to display network statistics. For example:
This command displays network statistics summary.netstat -s
8. iftop:
iftopis a command-line utility that displays real-time bandwidth usage for network interfaces.- Run
iftopin the terminal to display a dynamic view of network traffic. Pressqto quit.
9. nload:
nloadis a command-line utility that displays real-time network traffic statistics in a visual format.- Run
nloadin the terminal to display network traffic statistics for each interface.
10. Glances:
Glancesis a cross-platform system monitoring tool that provides an interactive and comprehensive view of system performance.- Install Glances using the package manager (
yumordnf) and runglancesin the terminal.

Comments