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

Nmon, a system performance monitoring tool under unix and linux

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

First, nmon is a good system performance monitoring tool under unix and linux.

Quote from Baidu:

The nmon tool can help display all important performance tuning information on a single screen and update it dynamically. This efficient tool works on any dumb screen, telnet session, or even dial-up line. In addition, it does not consume a large number of CPU cycles, usually less than 2%. On newer computers, CPU usage will be less than 1%.

Using a dumb screen, the data is displayed on the screen and updated every two seconds. However, you can easily change this interval to a longer or shorter period. If you stretch the window and display the data in an X Windows, VNC, PuTTY, or similar window, the nmon tool can output a large amount of information at the same time.

The nmon tool can also capture the same data into a text file to facilitate later analysis and graphics of the report. The output file is in spreadsheet format (.csv).

Second, the official download needs to select the tool version according to the operating system version.

Several ways to view linux version information:

1) uname-a

2) cat / proc/version

3) cat / etc/issue

4) ls / boot # some system boot files, mainly including kernel images (compressed kernel files), the system will carry their version number by default, and you can also see the version of the kernel. However, if you want to check the version number of the currently running system and there are multiple kernel versions under / boot, you still need to use the above three methods.

Nmon download: http://nmon.sourceforge.net/pmwiki.php?n=Site.Download

Nmonanalyser download: https://www.ibm.com/developerworks/community/wikis/form/anonymous/api/wiki/61ad9cf2-c6a3-4d2c-b779-61ff0266d32a/page/b7fc61a1-eef9-4756-8028-6e687997f176/p_w_upload/721e9797-b5fc-41d7-9b2f-5bd2aa2c8f7d/media/nmon_analyser_34a.zip

3. After the download is completed, upload the nmon file of the corresponding operating system version to the operating system (must be binary upload), then grant executable permission (executable file), and execute the following command:

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

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

N-t: high occupancy processes are included in the output

N-s 30: data collection every 30 seconds

N-c 180: a total of 180 times

The nmon result file can be converted to an csv file through the sort command:

# sort-A test1_090308_1313.nmon > test1_090308_1313.csv

Generate graphical results:

Through the nmon analyser.xls tool, the monitoring result file can be converted into excel file, which is convenient to analyze the resource occupation of the system.

1. Open the nmon analyser.xls tool

2. Adjust excel macro security: tools-Macros-Security

(modify security level and reliable publisher)

(select) Security level: low

(check above) Trust all installed add-ons and templates

(check above) Trust access to the Visual Baisc Project

3. After the modification, OK-close nmon analyser.xls and reopen it.

4. Click the Analyse nmon data button to load the previously downloaded test1_090308_1313.csv file.

Fourth, there are a lot of data and graphics in the analysis results, and the main performance parameter images are briefly introduced.

4.1 system summary (corresponding to the 'SYS_SUMM' of the excel tag)

The blue line is the change of cpu share.

The powder line is the change of disk IO.

4.2 Summary of disk reads and writes (corresponding to the 'DISK_SUMM' of the excel tag)

Blue is the rate of disk reads KB/sec

Purple write rate for disk KB/sec

4.3 memory summary (corresponding to the 'MEM' of the excel tag)

The curve represents the remaining memory (MB)

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

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

Wechat

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

12
Report