Analysis toolsA free tool for analyzing AIX and Linux performance, the Nmon tool helps to display all of the important performance tuning information on one screen and dynamically update 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).Performance IntroductionThe Nmon tool provides AIX and Linux performance experts with the ability to monitor and analyze performance data, including:
One. Download Nmon.
Depending on the type of CPU you choose to download the appropriate version:
Two. Initialize the Nmon tool.
Based on different platforms, initialize the Nmon tool for the corresponding platform:
chmod +x nmon_x86_ubuntu810
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 directly run Nmon, directly run Nmon can monitor the use of system resources in real-time, perform the following steps to show a period of time system resource consumption report.
Here is the direct execution of the Nmon command to monitor the system resource consumption in real time:
CPU, memory, disk, and network consumption are all visually displayed.
Three. Generate the Nmon report.
1). Collect Data:
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.
nmon-h See more help information.
2). To generate a report:
Download Nmon Analyser (free tool for generating performance reports):
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.
The following is the Nmon report generated in the test environment:
The red area is the analysis report for different indicators.
3). 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.
Reference Articles :
Nmon Performance: Free tools for analyzing AIX and Linux performance:
Nmon analyser--free tool for generating AIX performance reports:
Use Nmon to monitor and analyze system performance under Linux