Home  >  Article  >  System Tutorial  >  Revealing the advanced features of Nmon

Revealing the advanced features of Nmon

WBOY
WBOYforward
2024-01-04 12:58:341185browse
Introduction Nmon (named after Nigel's Monitor) is a computer performance system monitoring tool developed by IBM employee Nigel Griffiths for AIX and Linux systems. Nmon can display operating system statistics on the screen or store them in a data file to help understand computer resource usage, adjustment directions, and system bottlenecks.

This system benchmarking tool can obtain a large amount of important performance data with just one command. Using Nmon, you can easily monitor the system's CPU, memory, network, hard disk, file system, NFS, high-consuming processes, resources and micro-partition information of the IBM Power system.

Nmon installation

Nmon exists in the Ubuntu repository by default. You can install Nmon with the following command:

sudo apt-get install nmon
How to use Nmon to monitor Linux performance

After the installation is complete, start Nmon by entering the nmon command in the terminal

nmon

You will see the following output:

Revealing the advanced features of Nmon

As you can see from the screenshot above, the nmon command line tool runs completely interactively. You can use shortcut keys to easily view the corresponding statistics. You can use the following nmon shortcuts to display different system statistics:

edit
parameter effect
q Stop and exit Nmon
h View help
c View CPU statistics
m View memory statistics
k View kernel statistics
n View network statistics
N View NFS statistics
j View file system statistics
t View high-consuming processes
V View virtual memory statistics
v Detailed Mode
Check CPU Processor

If you want to collect statistics related to CPU performance, you should press the c key on the keyboard, after which you will see the following output:

Revealing the advanced features of Nmon

Check the statistics of expensive processes

If you want to collect statistical data of high-consuming processes running on the system, press the t key on the keyboard, and then you will see the following output:

Revealing the advanced features of Nmon

Check network statistics

If you want to collect network statistics of the Linux system, press the n key and you will see the following output:

Revealing the advanced features of Nmon

Hard disk I/O chart

Use the d key to obtain hard disk related information, you will see the following output:

Revealing the advanced features of Nmon

Check kernel information

Nmon A very important shortcut key is the k key, which is used to display summary information related to the system kernel. After pressing the k key, you will see the following output:

Revealing the advanced features of Nmon

Get system information

A very useful shortcut key for every system administrator is the r key, which can be used to display information about the computer's system structure, operating system version number, CPU and other different resources. After pressing the r key, you will see the following output:

Revealing the advanced features of Nmon

Summarize

There are many other tools that do the same job as Nmon, but Nmon is still very friendly to a Linux newbie.

The above is the detailed content of Revealing the advanced features of Nmon. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:linuxprobe.com. If there is any infringement, please contact admin@php.cn delete