Linux System performance monitoring tool--nmon

Source: Internet
Author: User

The Nmon is a system administrator-oriented tuning and benchmarking tool that can be used to display performance data about the following:

    • Processor

    • Memory

    • Internet

    • Disk

    • File system

    • Network File System (NFS)

    • The process that consumes the most resources

    • Resources

    • Power Micro-Partitioning

One of the places I really like about this tool is that it's completely interactive and can help Linux users or system administrators make the most of the necessary commands.

Installing the Nmon monitoring tool in Linux

If you're using a Debian-based Linux distribution, it's easy to install the Nmon command-line utility, just get it from the default repositories. To install it, just open a new terminal (press ctrl+alt+t) and use the command below.

$ sudo apt-get install Nmon

Are you a Fedora user? To install in your machine, open a new terminal and run the command below.

$ sudo yum install Nmon

Centos/rhel users can install it only if they download Nmon from http://pkgs.repoforge.org/nmon/. Alternatively, you can also enable the Rpmforge software library by enabling the method (http://www.tecmint.com/install-and-enable-rpmforge-repository-in-rhel-centos-6-5-4/ ) to install it.

How do I monitor Linux performance using Nmon?

Once the Nmon is installed, you can start it by typing the "nmon" command from the terminal and you will see the following output.

# Nmon

650) this.width=650; "class=" Fit-image "src=" http://s3.51cto.com/wyfs02/M02/2F/AD/ Wkiom1og7ipzm65haacmwrtdgpq597.jpg "width=" 498 "style=" border:0px; "/>

Nmon Preview

As you can see from the above screen, the Nmon command-line utility runs completely in interactive mode, which displays the keys for the user to toggle display statistics.

View CPU by processor

For example, if you want to collect some statistics on CPU performance, you should press the "C" button on the keyboard of the system you are using. When I press the "C" button on my keyboard, I get a very detailed output showing the information about CPU usage.

650) this.width=650; "class=" Fit-image "src=" http://s4.51cto.com/wyfs02/M02/2F/AD/ Wkiom1og7mlau8aqaacinefmwza513.jpg "width=" 498 "style=" border:0px; "/>

CPU usage information by processor

Here are some keys you can use with this utility to get information about other system resources in your machine.

m = Memory J = File System D = disk n = Network V = Virtual Memory R = Resource N =nfs k = Kernel T = The process that consumes the most resources. = only busy disks/processes are displayed

Statistics on processes with the most resources consumed

To get statistics on the most expensive processes running on a Linux system, just press the "T" button on your keyboard and wait for information to appear.

650) this.width=650; "class=" Fit-image "src=" http://s2.51cto.com/wyfs02/M02/2F/AD/wKioL1Og7qOjWr1FAAD57vrQB_ C065.jpg "width=" 498 "style=" border:0px; "/>

The process that consumes the most resources

Those who are familiar with the top utility are easy to understand and can interpret the above information. If you are new to Linux system management and have never used the top utility before, you might want to run the following command in the terminal and try to compare the resulting output to the above output. Do they look similar, or do they say the output is the same?

# Top

When I use the button "T" and the Nmon tool, it seems as if I was running the top process monitoring utility.

View statistics on the Web

Want to know some statistics on the Internet? Just press "n" on the keyboard.

650) this.width=650; "class=" Fit-image "src=" http://s7.51cto.com/wyfs02/M01/2F/AD/ Wkiom1og7vqqaolhaacc8cffobm208.jpg "width=" 498 "style=" border:0px; "/>

Network statistics

Disk input/Output graphics

Use the "D" button to get information about the disk.

650) this.width=650; "class=" Fit-image "src=" http://s5.51cto.com/wyfs02/M02/2F/AD/ Wkiom1og7x7avlapaacgg58f6nm864.jpg "width=" 498 "style=" border:0px; "/>

Monitoring disk input/output

View kernel information

A very important key that is used in conjunction with the tool is "K", which can be used to display some brief information about your system kernel.

650) this.width=650; "class=" Fit-image "src=" http://s5.51cto.com/wyfs02/M01/2F/AD/ Wkiol1og7xldzjhbaab4ppij5wi246.jpg "width=" 498 "style=" border:0px; "/>

View Linux kernel information

Get System Information

For me, a very useful key is "R", which can be used to display information about different resources, such as machine architecture, operating system version, Linux version, and CPU. If you look at the screen below, you will have a general idea of the importance of the key "R".

650) this.width=650; "class=" Fit-image "src=" http://s3.51cto.com/wyfs02/M01/2F/AD/ Wkiom1og72gypqqdaadgcqpmfow348.jpg "width=" 498 "style=" border:0px; "/>

System Information

View File System Statistics

To get statistics on the file system, press "J" on the keyboard.

650) this.width=650; "class=" Fit-image "src=" http://s7.51cto.com/wyfs02/M02/2F/AD/ Wkiom1og752hcgfiaadm9gkn5ug326.jpg "width=" 498 "style=" border:0px; "/>

File System Statistics

You can see from the above screen that we have information about file system size, used space, idle space, file system type, and mount point.

displaying NFS data

Press "N" to help collect and display NFS data.

650) this.width=650; "class=" Fit-image "src=" http://s9.51cto.com/wyfs02/M00/2F/AD/wKiom1Og77-zL_ Fuaacl3avcj5s472.jpg "width=" 498 "style=" border:0px; "/>

NFS Data

So far, it has been easy to use the Nmon utility. For this utility, you also need to know a lot of other aspects, one of which is the fact that you can use it in data capture mode. If you don't like the data displayed on the screen, you can easily capture a small sample file using this command.

# nmon-f-s13-c 30

After running this command, you will get a file with the ". Nnmon" extension in the directory where you use the tool. What does the "-f" option mean? The following is a concise explanation of the options used in the above command.

    • -F means that you want to save the data to a file that is not displayed on the screen.

    • -s13 means you want to capture data every 13 seconds.

    • The-c 30 means you want 30 data points or a snapshot.

This article is from the "Boys Kicked" blog, please be sure to keep this source http://rainbow168.blog.51cto.com/1060170/1548282

Linux System performance monitoring tool--nmon

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.