Use Nmon to monitor Linux system performance, nmonlinux
Nmon is a computer performance system monitoring tool developed for AIX and Linux systems by IBM employee Nigel Griffin iths. Nmon can display operating system statistics on the screen or store them in a data file to help you understand the usage of computer resources, adjust the direction and system bottlenecks. This system Benchmark Testing Tool only needs to use one command to obtain a large amount of important performance data. With Nmon, you can easily monitor information about the system's CPU, memory, network, hard disk, file system, NFS, high-consumption processes, resources, and differential zones of IBM Power systems.
Nmon Installation
Nmon is stored in the Ubuntu repository by default. Run the following command to install Nmon:
sudo apt-get install nmon
How to Use Nmon to monitor Linux Performance
After the installation is complete, enternmon
Command to start Nmon
nmon
You will see the following output:
Nmon-output
From the above, we can see that the nmon command line tool is completely interactive, and you can use the shortcut key to easily view the corresponding statistics. You can use the following nmon shortcut key to display different system statistics:
q
: Stop and exit Nmon
h
: View help
c
: View CPU statistics
m
: View memory statistics
d
: View hard disk statistics
k
: View kernel statistics
n
: View network statistics
N
: View NFS statistics
j
: View File System statistics
t
: View high-consumption processes
V
: View virtual memory statistics
v
: Verbose mode
Check CPU Processor
If you want to collect statistics about CPU performance, you should pressc
And then you will see the following output:
Nmon_cpu_output
Check high-consumption process Statistics
If you want to collect statistics of high-consumption processes that are running in the system, presst
And then you will see the following output:
Nmon_process_output
Check Network statistics
To collect network statistics for Linux, pressn
Key, you will see the following output:
N_network_output
Hard Disk I/O chart
Used
Key to obtain information about the hard disk, you will see the following output:
Nmon_disk_output
Check kernel information
An important shortcut for Nmon isk
Key, used to display summary information about the system kernel. Pressk
The following output is displayed:
Nmon_kernel_output
Obtain system information
A very useful shortcut for every system administrator isr
Key, which can be used to display information about different resources such as the system structure, operating system version number, and CPU of a computer. Pressr
The following output is displayed:
Nmon_system_output
Summary
There are also many other tools to do the same work as Nmon, but Nmon is very friendly for a new Linux user. If you have any questions, comment.