Installation and Use of Nmon, an AIX, Linux system, and performance monitoring tool

Source: Internet
Author: User
1. Overview monitoring is an indispensable part in checking system problems or optimizing system performance. The operating system monitoring tool monitors the usage of operating system resources and indirectly reflects the running status of each server program. The analysis based on the running results can help us quickly locate the scope of system problems or performance bottlenecks. Nmon is a type

1. Overview

Monitoring is an indispensable part in checking system problems or optimizing system performance. The operating system monitoring tool monitors the usage of operating system resources and indirectly reflects the running status of each server program. The analysis based on the running results can help us quickly locate the scope of system problems or performance bottlenecks.

Nmon is a monitoring and analysis tool widely used in AIX and various Linux operating systems. Compared with other system resource monitoring tools, nmon records comprehensive information, it can capture the usage of system resources in real time during system operation, and output the results to the file, and then generate data files and graphical results through nmon_analyzer.

The data recorded by nmon includes the following aspects (which is also a resource point we are concerned about when looking for a problem ):

CpU usage

Memory usage

Disk I/O speed, transfer and read/write Ratio

File System usage

Network I/O speed, transmission and read/write ratio, error statistics rate, and transfer packet size

Processes that consume the most resources

Computer details and resources

Page space and page I/O speed

Custom disk groups

Network File System

In addition, on the AIX operating system, nmon can monitor other information, such as asynchronous I/O.

2. Download and install nmon

How to obtain nmon? We can download it from the official IBM website for free at http://www.ibm.com/?works/wikis/display/wikiptype/nmon.

To install nmon, follow these steps:

1) log on to the system as the root user;

2) create a directory :#Mkdir/Test;

3) Use nmonFtpUpload to/test, or copy to the/test directory through other media;

4) execute authorizationCommand:#Chmod+ X nmon.

3. nmon data collection

3.1 Data Collection

To monitor system usage in real time and record the results, run the following command:

#./Nmon-f-t-s 30-c 180

N-f: output file in standard format: _ YYYYMMDD_HHMM.nmon;

N-t: the output contains processes with high usage;

N-s 30: data is collected every 30 seconds.

N-c 180: 180 times in total

After you press enter, a hostname _ is automatically generated in the current directory _TimeSeries. nmon file. If hosname is test1, the generated file is test10000090308_1313.nmon.

PassSortCommand to convert the nmon result file to a csv file:

# Sort-A test10000090308_1313.nmon> test10000090308_1313.csv

After executing the sortcommand, you can create the test10000090308_1313.csv file in the current directory.

3.2 generate graphical results

To analyze the results of nmon monitoring, IBM also provides the corresponding graphical analysis tool nmon_analyser, through nmon analyser. xLsThe tool can convert the Monitoring Result fileExExcel file to analyze the resource usage of the system.

The usage of the nmon analyser.xls tool is as follows:

1. Open the nmon analyser.xls tool;

2. Adjust excel macro security: Tools-macros-Security

(Security level modification and reliable publishers)

(Optional) Security Level: low

(Hook up) trust all installed add-ons and templates

(Hook up) Trust for "ViSuAccess to the al Baisc Project

3. After modification, click OK-Disable nmon analyser.xls and re-open it;

4. Click Analyse nmon datato download the test10000090308_1313.csv file.

The analysis result is as follows:

1

The above is a brief description and usage of nmon. You can analyze the system situation based on the collected results.

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.