Nmon data collection tool
Http://nmon.sourceforge.net/pmwiki.php? N = site. Download
Nmon analyser analyzes the data results and graphically presents them
Http://www.ibm.com/developerwork... iptype/nmonanalyser
Use the corresponding operating system file:
- [Root @ localhost performance] # Cat/etc/issue
- Centos release 5.4 (final)
- Kernel \ r on an \ m
CopyCode
- [Root @ localhost performance] # uname-
- Linux localhost. localdomain 2.6.18-164. EL5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
Copy code
- # Wget http://sourceforge.net/projects/nmon/files/download/nmon_x86_12a.zip/download
- # Unzip nmon_x86_12a.zip
- # Chmod A + x nmon_x86_rhel52
Copy code
Run nmon directly.
Collect data and generate reports:
Data collection:
- ./Nmon_x86_rhel52-S10-16A-F-M.
Copy code
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. (Note that the security level of Excel macros is lowered)
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.
Example 1:
Automatic data collection by day:
Add a record to crontab:
- 0 0 *** nmon-s300-c288-F-M/home/>/dev/null 2> & 1
Copy code
300*288 = 86400 seconds, which is exactly the data of one day.
Example 2:
A. Execute the command: # crontab-e
B. Add the following command in the last line:
- 0 8 ** 1200, 5/nmon/scriptn/mon_x86_rhel52-F-n-M/nmon/log-S 30-C
Copy code
Indicates:
From Monday to Friday, from AM, monitoring for 10 hours (until), output to/nmon/log