In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Nmon tool is a free monitoring and analysis tool provided by IBM, which is widely used in AIX and various Linux operating systems. This tool can collect the system resource consumption of the server and output a specific file, and can use the excel analysis tool nmonanalyser for statistical analysis of the data. Also, the nmon operation does not consume too much system resources, and the CPU utilization is generally less than 2%. Nmon has corresponding versions of programs for different operating system versions.
II. Installation
Install: wget http://sourceforge.net/projects/nmon/files/nmon_linux_14i.tar.gz and enter
Now you can use nmon.
The Nmon tool is easy to use. In the nmon directory, type # nmon
This screen shows that the installation has been successful. (this is the CentOS7 version of the screen, other versions of the screen will be slightly different)
Enter c to display CPU information, "m" corresponds to memory, "n" corresponds to network, "d" can view disk information, "t" can view system process information. "
III. Data acquisition
The above implementation is the real-time monitoring of the server. In the actual performance test, we need to record the data within a period of time, you can use the following command
three。 Generate a nmon report.
1)。 Collect data:
# nmon-S10-C60-f-m / home/
Parameter explanation:
-S10 collects data every 10 seconds.
-c60 collects 60 times, that is, the data is collected for ten minutes.
-f the data file name generated contains the time when the file was created. For example: _ YYYYMMDD_HHMM.nmon
-m the directory where the generated data files are stored.
A nmon file is generated and updated every ten seconds until ten minutes later.
The generated file name, such as: _ 090824_1306.nmon, "" is the hostname of this host.
Nmon-h for more help.
Ps-ef | grep nmon "query process number
After the command is started, the monitoring file is generated in the directory where the nmon is located, and the resource data is continuously written, that is, monitoring for 10 minutes. These operations are completed automatically, and the testers can continue to complete other operations without manual intervention. If you want to stop the monitoring, you need to query the process number through "# ps-ef | grep nmon", and then kill the process to stop monitoring.
Kill the process, # kill-9 + process id
Wget http://sourceforge.net/projects/nmon/files/nmon_linux_14i.tar.gz
Wget http://sourceforge.net/projects/nmon/files/nmon_linux_14i.tar.gz
Wget http://sourceforge.net/projects/nmon/files/nmon_linux_14i.tar.gz
Convert the .nmon file to a .csv file and generate the corresponding .csv file in the current directory with the following command
$sort localhost_170804_1129.nmon > FastDFS_localhost_170804_1129.nmon.csv
Analysis Chart Generation tool download https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/Power%20Systems/page/nmon_analyser
Download the .csv file generated by the monitoring locally. Convert to an excel file through the nmon analyser tool (nmon analyser v33g.xls). How to transform it?
Nmon analyser can be downloaded from IBM's website. Click download.
The structure is very simple, there are only two, one Word, one Excel,Word is the description document, Excel is the tool we need. Double-click to open the Excel text
Click "Analyze nmon data", and then select the nmon file we just generated. About ten seconds (the amount of data is different, the time of generation is also different) will generate the report we need. At this point, we can view CPU, memory and other data more intuitively.
1) Open nmon analyser v33g.xls after download
2) adjust the security level of the excel macro to the minimum or do the following
3) then click the Analyser nmon data button, select the downloaded .csv file, and then convert it to a .excel file to generate a graphical file, such as:
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.