Installation and use of Nmon in Linux

Source: Internet
Author: User

One. Download Nmon.

Depending on the type of CPU you choose to download the appropriate version:
Http://nmon.sourceforge.net/pmwiki.php?n=Site.Download
wget http://sourceforge.net/projects/nmon/files/download/nmon_x86_12a.zip/download

Click on the first link, I downloaded the list of nmon_linux_14i_newer_Linux_versions.tar.gz, decompression after the inside there are many versions of Nmon, I use nmon_linux_x86_64, pro-Test available. Depending on the Linux system version, using a different version may prompt the glibc version to be too low and need to install a later version of glibc, please refer to the http://blog.csdn.net/cpplang/article/details/8462768


Two. Initialize the Nmon tool.

Directly in window, the extracted nmon_linux_x86_64 is uploaded to the Linux system to be monitored via sftp, placed in the/usr/local/bin directory, and executed as shown in the command

This can be directly called nmon_linux_x86_64, the name is a bit long, can be changed to our customary nmon, in the current directory to enter the following command



For Debian also do the following (do not do the same can be run):
Apt-get Install Lsb-release
lsb_release-d | Sed ' s/description:\t//' >/etc/debian_release


Then directly run Nmon, directly run Nmon can monitor the use of system resources in real-time, perform the following steps to show a period of time system resource consumption report.

Here is the direct execution of the Nmon command to monitor the system resource consumption in real time:

CPU, memory, disk, and network consumption are all visually displayed.

Three. Generate the Nmon report.

1). Collect Data:
#nmon-s10-c60-f-m/home/

Parameter explanation:
The-S10 collects data every 10 seconds.
-c60 collected 60 times, that is, the acquisition of 10 minutes of data.
-F generates a data file name that contains the time when the file was created.
The storage directory of the data files generated by-M.

This generates a Nmon file and updates every 10 seconds until 10 minutes later.
The generated file name is:

nmon-h See more help information.

2). To generate a report:
Download Nmon Analyser (free tool for generating performance reports):
Https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/Power%20Systems/page/nmon_analyser


Upload the previously generated Nmon data file to the Windows machine and open the analysis tool Nmon analyser v33c.xls with Excel. Click the "Analyze Nmon Data" button in the Excel file to select the Nmon file, which will generate a parsed result file: Hostname_090824_1306.nmon.xls, open the generated file with Excel to see the results 。

If the macro does not run, the following actions are required:
Tools, macro-and security, and then open the file and allow the macro to run.


The following is the Nmon report generated in the test environment:

The red area is the analysis report for different indicators.

3). automatically collect data by day:
Add a record to the crontab:
0 0 * * * root nmon-s300-c288-f-m/home/>/dev/null 2>&1

300*288=86400 seconds, just a day's data.

Installation and use of Nmon in Linux

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.