Ux_nmon Monitoring Method

Source: Internet
Author: User

I. Introduction

Nmon is a free monitoring and analysis tool provided by IBM that is widely used in Aix and a variety of Linux operating systems. This tool collects the system resource consumption of the server and outputs a specific file. It can also use the Excel analysis tool nmonanalyser for statistical analysis of data. In addition, nmon does not occupy too many system resources. Generally, the CPU usage does not exceed 2%. For different operating system versions, nmon has a corresponding version of the program.

The usage of nmon in Aix

Ii. Installation

First, download the nmon tool. When downloading the tool, you must download the corresponding system version. Here we use AIX as an example to download the nmon4aix_11e.tar.gz version. Upload, nmon_aix51, nmon_aix52ml5, nmon, nmon_aix52ml2nmon_aix53), change the folder name to nmon, and upload it to Linux (any folder can be used ).

To use the nmon tool normally, we need to modify the permissions of related files.

TBCs @ boss1:/interface/nmon $ chmod 755 nmon nmon_aix51nmon_aix52ml2 nmon_aix52ml5 nmon_aix53

Upload files from

Download Attachment
(19.23 KB)

Now you can use nmon.

The nmon tool is easy to use. In the nmon directory, enter./nmon

Upload files from

Download Attachment
(29.71 KB)

The installation is successful. (This is the image of the AIX version. The image of other versions will be slightly different)

Enter C to Display CPU information. "M" corresponds to memory and "N" corresponds to the network, and "D" can view disk information. "T" can view system process information."

Upload files from

Download Attachment
(117.06 KB)

Iii. Data collection

The above implementation is the real-time monitoring of the server. In the actual performance test, we need to record the data within a period of time. You can use the following command

./Nmon-F-t-r test-S 30-C 10

The preceding command indicates:

-F: name of the output file in standard format:

-T outputs the most resource-consuming process
-S: sampling once every n seconds. The value is 30 seconds.
-C: How many samples are taken out. Here, 10 is used, that is, 10*30/60 = 5 minutes.

Test: monitoring record title

After the command is started, a monitoring file is generated in the directory where nmon is located, and resource data is continuously written until the collection of 360 monitoring sites is completed-that is, monitoring is completed for one hour, the tester can continue to perform other operations without manual intervention. If you want to stop the monitoring, You need to query the process number through "# ps-Ef | grep nmon", and then kill the process to stop monitoring.

The name of the nmon output file is server name_datetime. nmon.

Convert the. nmonfile into A. csvfile by following the following command, and generate the corresponding. CSV file in the current directory.

Sort boss0000110810_1438.nmon> boss0000110810_1438.csv

Upload files from

Download Attachment
(32 KB)

Download the boss0000110810_1438.csv file to your local device. Use the nmon Analyser Tool (nmon analyser v33g.xls) to convert a file to an Excel file. How to convert it? The procedure is as follows:

1) Open nmon analyser v33g.xls after the download

2) Adjust the security level of the Excel macro to a minimum or as follows:

Upload files from

Download Attachment
(96.4 KB)

3) Click "analyser nmon data" and select the. CSV file to be downloaded. Then, it is converted to a. Excel file to generate a graphical file. For example:

Upload files from

Download Attachment
(73.34 KB)

Upload files from

Download Attachment
(72.78 KB)

Upload
Downloading attachments (72.78 KB)

 

Http://bbs.chinaunix.net/thread-3670590-1-1.html

 

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.