Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to understand the principle of nmon and nmon analyser

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

In this issue, Xiaobian will bring you about how to understand the principle of nmon and nmon analyzer. The article is rich in content and analyzes and narrates from a professional perspective. After reading this article, I hope you can gain something.

1. Download nmon tools and nmonanalyzer

Nmon Download:

Location: Downloadable from IBM Wiki

http://www-941.haw.ibm.com/collaboration/wiki/display/WikiPtype/nmon

For example, the system I tested is AIX5.3, then you can download nmon4aix12e.zip, after downloading we can see that there are some files in the compressed package,

In fact, nmon is a shell script. When nmon file runs, it calls other files to generate performance data. When this tool runs, it also accepts parameters by executing nmon script.

Nmonanalyzer Download:

Location: Available from Download from IBM Wiki

http://www-941.haw.ibm.com/collaboration/wiki/display/Wikiptype/nmonanalyser

Upload nomn tool to server & modify properties

ftp the file in nmon4aix12e.zip to the server, any directory, it is best to create a directory yourself, and then modify the file attributes to executable: chmod 755 nmon_aix53

3. Run nmon script on server

Go to/home/nmon directory

cd /home/nmon

Run nmon script

./ nmon -fT -s 30 -c 120

where 30 means that system performance data is taken once every 30 seconds, and 120 means that 120 times are taken;

Thus, nmon will continuously obtain 30 s X 120=60 minutes from the beginning of operation, which can be adjusted according to the actual time required;

When running the above command, a.nmon file will be generated under this directory, and this file will be written into performance data according to the interval time. When you view this file after a period of time, the file bytes will become larger;

IV. Analyzing.nmon files with nmonanalyzer

When the test is finished, ftp to the server and get the.nmon file down.

Open the nmon analyzer v338.xls file in the nmon_analyzer.zip package, click the Analyze nomn data button, and select the.nmon file from before under get.

(If the security level for the following macros is reported as too high, lower the level in Tools--Macros--Security and reopen the nmon analyzer v338.xls file)

After the analysis, a performance analysis result file will be generated (file format: .xls, including CPU,IO, memory and other performance analysis reports).

There are many data and graphs in the analysis results, which briefly describe the main performance parameter images

4.1 System Summary ('SYS_SUMM' corresponding to excel tag)

the blue line represents the change in cpu occupancy;

The pink line is the change of disk IO;

4.2 Disk Read/Write Summary (corresponding to excel tag 'DISK_SUMM')

Blue is disk read rate KB/sec

Purple is the rate of disk writes in KB/sec

4.3 Memory summary (corresponding to excel label 'MEM')

Curve represents memory remaining (MB)

The report file (.xls) obtained by analyzing the data contains a lot of performance analysis result data, which can be viewed according to your own needs.

5. The operation of nmon itself consumes system resources;

In addition, if it is determined that nmon is no longer needed to continue collecting information after obtaining the.nmon file, nmon should be killed;

Command:

ps -A |grep nmon #get pid

kill -9 pid

The above is how to understand the principle of nmon and nmon analyzer shared by Xiaobian for everyone. If there are similar doubts, please refer to the above analysis for understanding. If you want to know more about it, please pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report