Use nmon in Linux to analyze system performance (for example, dstat and iostat)

Source: Internet
Author: User
Http://pkgs.repoforge.org/dstat/download the corresponding CPU version:

Http://nmon.sourceforge.net/pmwiki.php? N = site. Download

Wget http://sourceforge.net/projects/nmon/files/download/nmon_x86_12a.zip/download
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_opensuse10nmon_x86_centos6
Nmon_x86_64_centos6

Use the corresponding operating system file:
Chmod + x nmon_x86_ubuntu810
MV nmon_x86_ubuntu810/usr/local/bin/nmon

Perform the following operations for Debian ):
Apt-Get install LSB-release
Lsb_release-d | SED's/Description: \ t // '>/etc/debian_release

Run nmon directly.

Collect data and generate reports:
Data collection:
Nmon-S10-16A-F-M/home/

Parameter description:
-S10 collects data every 10 seconds.
-60 records are collected for 60 times, that is, 10 minutes of data are collected.
-F: The generated data file name contains the time when the file was created.
-M: directory where data files are stored.

In this way, a nmon file is generated and updated every 10 seconds until 10 minutes later.
The generated file name is hostname_0901__1306.nmon. "hostname" indicates the host name.

Generate Reports:
Download nmon analyser (a free tool for generating performance reports ):
Http://www.ibm.com/developerworks/wikis/display/Wikiptype/nmonanalyser

Upload the previously generated nmon data file to a Windows machine and use Excel to open the analysis tool nmon analyser v33c.xls. Click the "analyze nmon data" button in the Excel file and select the nmon data file to generate an analysis result file: hostname_0901__1306.nmon.xls, open the generated file in Excel and you will see the result.

If the macro cannot run, perform the following operations:
Tool-> macro-> Security->, and then open the file and allow the macro to run.

Automatic data collection by day:
Add a record to crontab:
0 0 *** root nmon-s300-c288-F-M/home/>/dev/null 2> & 1

300*288 = 86400 seconds, which is exactly the data of one day.

References:
Nmon for Linux:
Http://nmon.sourceforge.net/pmwiki.php

Nmon performance: a free tool for analyzing AIX and Linux performance:
Http://www.ibm.com/developerworks/cn/aix/library/analyze_aix/index.html

Nmon analyser-a free tool for generating AIX performance reports:
Http://www.ibm.com/developerworks/cn/aix/library/nmon_analyser/index.html

 

From: http://bluedata.org/2009/08/31/linux-nmon/

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.