How to Use Nmon to monitor Linux system performance
Nmon (also known as Nigel's Monitor) is a very common system performance monitoring tool, developed by IBM engineer Nigel Griffin iths, applicable to AIX and Linux operating systems. This tool can directly display the resource utilization of the current operating system on the screen to help you identify system bottlenecks and assist in system tuning. Thanks to its fame, we have made a simple recommendation in the article "Recommended Linux utility", which is a great tool.
With Nmon, you can easily monitor system CPU, memory, network, disk, file system, NFS, Top processes, and other information.
Install Nmon
By default, Nmon is already in the Ubuntu source. You can directly install it using apt-get:
Sudo apt-get install nmon
Use Nmon to monitor Linux system performance
Once the installation is complete, run the nmon command on the terminal to start it.
After the Nmon command is executed, you can see the following output:
As you can see, the Nmon command line tool is a user interaction application. You can easily use keyboard shortcuts to view statistics.
- Q: Stop and exit Nmon.
- H: View help information
- C: View CPU statistics
- M: view memory statistics
- D: view disk statistics
- K: View kernel statistics
- N: View network statistics
- N: View NFS statistics
- J: view the statistics of the file system
- T: view the Top process Statistics
- V: View virtual memory statistics
- V: Detailed output mode
View CPU statistics
If you want to view CPU performance information, press the c key:
View Top process Statistics
To view the Top process statistics, press the t key:
View network statistics
To view network statistics, press the n key:
Disk I/O diagram
You can use the d key to view disk statistics:
View kernel statistics
To view the kernel statistics, press the k key:
Obtain system information
If you want to view the Linux system information, such as the system architecture, operating system version, or Linux version, you can use the r key, which is very useful to the system administrator.