Nmon (named Nigel's Monitor) is a computer performance system monitoring tool developed by IBM employees Nigel Griffiths for AIX and Linux systems. Nmon can display the operating system statistics on the screen or stored in a data file to help understand the use of computer resources, adjust direction and system bottlenecks. This system benchmark tool only needs to use one command to get a lot of important performance data. With Nmon, you can easily monitor the system's CPU, memory, network, hard disk, file system, NFS, high-consumption processes, resources, and differential areas of the IBM Power system.
Installing Nmon
By default are available in the nmon
Ubuntu repository. You can easily install Nmon by running the following command:
1 |
sudo apt-get install nmon |
How to use the Nmon to Monitor Linux performance
Once the installation has been finished and you can launch it by typing the nmon
command in the terminal.
You WI ' ll see the following output:
You can see from the above screenshot so the Nmon command-line utility runs completely in interactive mode, and can Easily toggle statistics using shortcut keys.
You can use the following Nmon keyboard shortcuts to display different system stats:
q
: To stop and exit Nmon
h
: To see Help screens
c
: See CPU stats
m
: See Memory stats
d
: See Disk Stats
k
: See Kernel stats
n
: See network stats
N
: See NFS stats
j
: See File system stats
t
: See Top process
V
: See Virtual memory stats
v
: Verbose mode
Check CPU by Processor
If you would like to collect some statistics on CPU performance, you should hits the c
key on the keyboard.
After hitting the key, you'll see the c
following output.
Check Top Process Statistics
To get stats on top processes that is running on your system, press the t
key on your keyboard.
You'll see the following output.
Check Network Statistics
To get the network stats of your Linux system, just press the n
key on your keyboard.
You WI ' ll see the following output:
Disk I/O Graphs
Use the d
key to get information about disks.
You WI ' ll see the following output:
Check Kernel Information
A most important key-to-use and this tool is k;
it's used to display some brief information on the kernel of your SYS Tem.
You'll see the following output after hitting the k
key on your keyboard.
Get System Information
A very useful key for every system admin is the r
key which are used to give information on different resources such as Machine architecture, operating system version, Linux version and CPU.
You'll see the following output by hitting the r
key.
There are many other tools that do the same job as Nmon, but Nmon is friendly to a new Linux novice.
Nmon Monitoring system performance of Linux