preparation stage
View linux version
- uname -a, found to be centos7 version 64-bit
Linux centos73-247 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Download, install, start nmon
entering download page
Find the corresponding version
download
Unzip
- Find the nmon_x86_64_centos7 file in the compressed package
Open xftp
- Create a nmon folder in the root directory (which is Linux/).
- Put the nmon_x86_64_centos7 in the compressed package into the folder.
Open xshell
Find the folder where nmon is located
Empowerment【Increase execution authority】
- chmod +x nmon_x86_64_centos7
run
Generate monitoring data
- ./nmon_x86_64_centos7 -s10 -c60 -f -m /nmon/
-s10 每 10 秒采集一次数据。
-c60 采集 60 次,即为采集十分钟的数据。
-f 生成的数据文件名中包含文件创建的时间。
-m 生成的数据文件的存放目录。
Analyze monitoring data
download
use
- Unzip the nmon analyser v52_1.xlsm file and open it with excel.
- Find the Analyze nmon data button and import the monitoring data.
- Generate a new excel and export the results.
common problem
The excel macro function of wps cannot be used
如果使用wps的excel,点击按钮,提示宏功能不能使用,网盘:https://pan.baidu.com/s/1MJmdEbl1fkIUXIJ-kdcWFg 密码:0xvh,下载后运行 vba6chs.msi 安装。
After importing monitoring data, it prompts runtime error '13'
原因是本机右下角的系统时间格式不是yyyy-MM-dd格式。电脑的计算机名不能有特殊字符。修改时间格式为yyyy-MM-dd即可。