Linux NMON工具
1. 下载地址:
http://nmon.sourceforge.net/pmwiki.php?n=Site.Download
2.使用
nmon16e_mpginc.tar.gz解压, nmon_x86_64_rhel6上传到服务器的/usr/local/bin
[root@serv-ora-test-01 ~]# cd/usr/local/bin
[root@serv-ora-test-01 bin]# mvnmon_x86_64_rhel6 nmon
[root@serv-ora-test-01 bin]# chmod 775 nmon
[root@serv-ora-test-01 bin]# nmon
+nmon-16e---------------------Hostname=serv-ora-testRefresh=0secs---14:58.44----------------------------------------------------------------------------------------+
| |
| ------------------------------ |
| _ __ _ _____ ___ ___ For help type H or... |
| | '_ \| '_ ` _ \ / _ \| '_\ nmon -? -hint |
| | | | | | | | | | (_) | | || nmon -h - fulldetails |
| |_| |_|_| |_| |_|\___/|_||_| |
| To stop nmon type q toQuit |
| ------------------------------ |
| |
| Red Hat Enterprise LinuxServer release 6.5(Santiago) |
| GenuineIntel Intel(R) Xeon(R)CPU E5-2683 v3 @2.00GHz |
| MHz=1999.998bogomips=3999.99 |
| ProcessorChips=0PhyscalCores=0 |
| Hyperthreads =0VirtualCPUs=1 |
| |
| Use these keys to togglestatistics on/off: |
| c =CPU l = CPU Long-term - = Faster screenupdates |
| C = "WideView U = Utilisation + = Slowerscreenupdates |
| m =Memory V = Virtual memory j =File Systems |
| d =Disks n =Network . = onlybusydisks/procs |
| r =Resource N =NFS h = moreoptions |
| k =Kernel t = Top-processes q =Quit |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
查看帮助: nmon –h
数据采集:nmon -s20 -c3 -f -m /oracle/
参数解释:
-s20 每 20 秒采集一次数据;
-c3 采集 3 次,即为采集一分钟的数据;
-f 生成的报告文件名中包含文件创建的时间;
-m 生成的报告文件的存放目录;
生成的文件名如下: XXXXX_161127_2159.nmon ,"XXXXX" 是机器的主机名。
可以通过nmon -h查看有关nmon的更多使用方法。
将生成的报告传到本地,用nmon_analyser工具进行查看
将/home/zhengyihan目录下的XXXXX_161127_2159.nmon文件ftp到本地
②下载nmon_analyser工具
需要下载的文件名:nmon_analyser_v51_2.zip(注:下载时间不同,文件名可能会不同)
下载到本地解压后,打开.xlsm文件,点击‘Analyze nmon data’,此时可能会提示‘宏不可用’,点击表格左上角安全警告处的'选项'-->'启用此内容'-->'确定';
再次点击‘Analyzenmon data’,选择刚才ftp到本地的.nmon文件