System performance monitoring tool Nmon under UNIX and Linux

Source: Internet
Author: User

First, Nmon is a very good UNIX, Linux under the system performance monitoring tools.

Quoted by Baidu know:

The Nmon tool helps to display all of the important performance optimization information on one screen and dynamically updates it. This efficient tool can work on any dumb screen, Telnet session, or even dial-up lines. In addition, it does not consume a lot of CPU cycles, usually less than 2%. On the updated computer, its CPU utilization will be less than 1%.

Use a dumb screen to display the data on the screen and update it every two seconds. However, you can easily change this interval to a longer or shorter time period. If you stretch the window and display the data in X windows, VNC, PuTTY, or similar windows, the Nmon tool can output a large amount of information at the same time.

The Nmon tool can also capture the same data to a text file for later analysis and drawing of the report. The output file is in spreadsheet format (. csv).

Second, the official download needs to choose 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 #一些系统引导文件, mainly including kernel images (compressed files of the kernel), the system will bring their version number by default, all can also see the kernel version, but if you want to see the version number of the currently running system, and/boot with multiple kernel versions, Then there are three ways to use the above.

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/attachment/ 721e9797-b5fc-41d7-9b2f-5bd2aa2c8f7d/media/nmon_analyser_34a.zip

Third, download the corresponding operating system version of the Nmon file to the operating system (must be binary upload), and then give executable permissions (executable file), execute the following command:

#./nmon-f-t-s 30-c 180
N-f: Output files in standard format:N-T: The process of high occupancy is included in the output;
N-S 30: Data acquisition every 30 seconds
N-C 180: Collect 180 times altogether

You can convert the Nmon result file to a CSV file by using the sort command:

# sort-a Test1_090308_1313.nmon > Test1_090308_1313.csv

To generate graphical results:

The Nmon Analyser.xls tool can be used to convert the monitoring result file into Excel file, which makes it easy to analyze the resource occupancy of the system.
1, open Nmon analyser.xls tools;
2. Adjust Excel Macro security: Tools-Macros-security
(Modify security level and reliable publishers)
(selection) Security level: Low
(tick) Trust all installed add-ins and templates
(tick) Trust access to the Visual Baisc project
3. After modification, confirm-close Nmon Analyser.xls, reopen;
4. Click the Analyse Nmon Data button to load the previously downloaded test1_090308_1313.csv file.

Four, the analysis results have a lot of data and graphics, a brief introduction of the main performance parameters of the image

4.1 System rollup (' Sys_summ ' for Excel tags)
The Blue Line is the change of CPU occupancy;
Pink is the change of disk IO;
4.2 Summary of disk reads and writes (corresponding to the ' Disk_summ ' of the Excel tag)
Blue for disk read rate kb/sec
Purple for disk write rate kb/sec
4.3 Memory Summary (' MEM ' corresponding to Excel tag)
Curve indicates amount of memory remaining (MB)
The analysis data gets a report file (. xls) that contains a lot of profiling results data, which is viewed according to your needs.

650) this.width=650; "title=" z111111111111111 "style=" border-left-width:0px;border-right-width:0px; border-bottom-width:0px;border-top-width:0px; "border=" 0 "alt=" z111111111111111 "src=" https:// 8qstca.bay.livefilestore.com/y1m_aw5pv_8z4kyy_ Hwghumhxg02eau6biz5l1kuy5udzuegdg5awosypqmjarclmbmknffbiqbtlfnm2m8dqnq-cnlkoqewbdvpuyclalcmbd6kmxdhzzsvxw_ Shxmi98wj0wjirbu9-d2_ltcqvuqmq/z111111111111111_thumb%5b10%5d.gif?download&psid=1 "width=" 493 "height=" 208 "/ >

650) this.width=650; "title=" z111111111111111 "style=" border-left-width:0px;border-right-width:0px; border-bottom-width:0px;border-top-width:0px; "border=" 0 "alt=" z111111111111111 "src=" https:// 8qstca.bay.livefilestore.com/y1m297ibqq5nztx_ Wind6c54cvjx6t0krz96xk4qykupgjt2na2ixsq7xjyeln1xrvkieiwlag9nyjv4w8dccdw7denw6frn8qy-jctbfajsl_ Gf6voyqvo0acmc97jlp2b-uho1xjnw-yd1i24whddda/z111111111111111_thumb%5b1%5d.gif?download&psid=1 "width=" 491 " height= "197"/>



This article is from "It worker-small Maple" blog, please be sure to keep this source http://wangfeng7399.blog.51cto.com/3518031/1438957

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.