Bumper car driver teaches you to use Nmon to analyze system performance under Linux

Source: Internet
Author: User

Download Nmon.

Depending on the type of CPU you choose to download the appropriate version:
Http://nmon.sourceforge.net/pmwiki.php?n=Site.Download
wget http://sourceforge.net/projects/nmon/files/download/nmon_x86_12a.zip/download

I'm going to get you a package.

Nmon Performance: Analyze AIX and Linux free tools for performance: http://down.51cto.com/data/2316752

Nmon analyser--free tool for generating AIX performance reports: http://down.51cto.com/data/2316753


Initializes the Nmon tool.

#unzip Nmon_x86_12a.zip
Archive:nmon_x86_12a.zip
Inflating:nmon_x86_rhel45
Inflating:nmon_x86_rhel52
Inflating:nmon_x86_sles9
Inflating:nmon_x86_sles10
inflating:nmon_x86_ubuntu810
Inflating:nmon_x86_fedora10
Inflating:nmon_x86_opensuse10

Based on different platforms, initialize the Nmon tool for the corresponding platform:
chmod +x NMON_X86_64_CENTOS6
MV Nmon_x86_64_centos6/usr/local/bin/nmon

For Debian also do the following (do not do the same can be run):
Apt-get Install Lsb-release
lsb_release-d | Sed ' s/description:/t//' >/etc/debian_release

Then run the Nmon directly.


Collect data and generate reports:
Data acquisition:
./nmon_x86_64_centos6-s10-c60-f-m/usr/local/

Parameter explanation:
The-S10 collects data every 10 seconds.
-c60 collected 60 times, that is, the acquisition of 10 minutes of data.
-F generates a data file name that contains the time when the file was created.
The storage directory of the data files generated by-M.

This generates a Nmon file and updates every 10 seconds until 10 minutes later.
The generated file name is: Hostname_090824_1306.nmon, "hostname" is the host name of this host.

650) this.width=650; "title=" 1.png "src=" https://s5.51cto.com/wyfs02/M02/98/AA/wKiom1k_b5_ Bd4nzaaaichss3xi795.png-wh_500x0-wm_3-wmp_4-s_1105189158.png "alt=" wkiom1k_b5_bd4nzaaaichss3xi795.png-wh_50 "/ >

650) this.width=650; "title=" 2.png "style=" Float:none; "src=" Https://s3.51cto.com/wyfs02/M02/98/AA/wKioL1k_ B2-wzgtvaaak3pzkozw740.png-wh_500x0-wm_3-wmp_4-s_1221531192.png "alt=" Wkiol1k_b2-wzgtvaaak3pzkozw740.png-wh_50 " />


We press the C key to show the statistics of CPU usage.

650) this.width=650; "title=" 4.png "src=" Https://s1.51cto.com/wyfs02/M01/98/AA/wKiom1k_ B1qhzhriaaaqwikjbu0490.png-wh_500x0-wm_3-wmp_4-s_70345766.png "alt=" wkiom1k_b1qhzhriaaaqwikjbu0490.png-wh_50 "/ >

Then press m (show memory usage) d (Show disk I/O speed, transmission and read/write Ratio) r (Display computer details and resources) K (Display computer kernel information) n (Show network I/O speed, transmit and read ratio, error rate and packet size)

650) this.width=650; "title=" 5.png "style=" Float:none; "src=" Https://s1.51cto.com/wyfs02/M02/98/AA/wKioL1k_ B0acjgaqaabjanrgt-8565.png-wh_500x0-wm_3-wmp_4-s_2768668843.png "alt=" Wkiol1k_b0acjgaqaabjanrgt-8565.png-wh_50 " />

650) this.width=650; "title=" 6.png "style=" Float:none; "src=" Https://s1.51cto.com/wyfs02/M00/98/AA/wKiom1k_ B0aargzwaaaquqlefdw995.png-wh_500x0-wm_3-wmp_4-s_809889151.png "alt=" wkiom1k_b0aargzwaaaquqlefdw995.png-wh_50 "/ >

To generate a report:
Download Nmon Analyser (free tool for generating performance reports):
Http://www.ibm.com/developerworks/wikis/display/Wikiptype/nmonanalyser

Upload the previously generated Nmon data file to the Windows machine and open the analysis tool Nmon analyser v33c.xls with Excel. Click the "Analyze Nmon Data" button in the Excel file to select the Nmon file, which will generate a parsed result file: Hostname_090824_1306.nmon.xls, open the generated file with Excel to see the results 。

If the macro does not run, the following actions are required:
Tools, macro-and security, and then open the file and allow the macro to run.

Automatically collect data by day:
Add a record to the crontab:
0 0 * * * root nmon-s300-c288-f-m/home/>/dev/null 2>&1

300*288=86400 seconds, just a day's data.


43 21  * * * 21:43  execution  
15 05 * * *    05:15   Execution  0 17 * * * 17:00  execution  
0 17 * * 1   17:00  execution   per Monday;
0,10 17 * * 0,2,3   17:00 and  17:10 per Sunday, Tuesday, Wednesday   Execution  0-10 17 1 * *  every month 1st from  17:00 to 7:10  each 1-minute execution  0 0  1,15 * 1  every month 1st and  15 daily and day  0:00  execute

42 4 1 * *     Every month 1st  4:42 execution  0 21 * * 1-6   Monday to Saturday  21:00  execution   0,10,20,30,40,50 * * * *  every 10 minutes  */10 * * * *         Execute   every 10 minutes;
* 1 * * *          execute  0 1 * * *      Every 1 minutes from 1:0 to 1:59      1:00  execution  
0 */1 * * *         0 minutes every 1 hours  0 * * * *         Perform   every 1 hours at 0 minutes;
2 8-20/3 * * *       8:02,11:02,14:02,17:02,20:02  Executive  30 5 1,15 * *        1 Day and  15 Day's  5:30  execution



This article is from the "North Bear" blog, please be sure to keep this source http://liuxiong.blog.51cto.com/12904968/1934877

Bumper car driver teaches you to use Nmon to analyze system performance under Linux

Related Article

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.