nmon安装和配置

[root@db87:/opt] $unzip  nmon_x86_12a.zip
Archive:  nmon_x86_12a.zip
  inflating: nmon_x86_rhel45         
  inflating: nmon_x86_rhel52         
  inflating: nmon_x86_sles9          
  inflating: nmon_x86_sles10         
  inflating: nmon_x86_ubuntu810      
  inflating: nmon_x86_fedora10       
  inflating: nmon_x86_opensuse10     
[root@db87:/opt] $ls -ltr
total 1668
-rw-rw-rw-  1 root root 168875 Feb 11  2009 nmon_x86_opensuse10
-rw-rw-rw-  1 root root 152131 Feb 12  2009 nmon_x86_rhel45
-rw-rw-rw-  1 root root 174171 Feb 12  2009 nmon_x86_sles10
-rw-rw-rw-  1 root root 167781 Feb 12  2009 nmon_x86_fedora10
-rw-rw-rw-  1 root root 167957 Feb 14  2009 nmon_x86_rhel52
-rw-rw-rw-  1 root root 183215 Feb 14  2009 nmon_x86_ubuntu810
-rw-rw-rw-  1 root root 154107 Feb 14  2009 nmon_x86_sles9
drwxr-xr-x. 2 root root   4096 May 17  2013 rh
drwxr-xr-x  3 root root   4096 Jun 19 10:29 ibm
-rw-r--r--  1 root root 515920 Oct  9 03:42 nmon_x86_12a.zip
[root@db87:/opt] $uname -a
Linux db87 2.6.32-504.el6.i686 #1 SMP Tue Sep 16 01:56:19 EDT 2014 i686 i686 i386 GNU/Linux
[root@db87:/opt] $cp nmon_x86_rhel52 nmon
[root@db87:/opt] $ls -ltr
total 1836
-rw-rw-rw-  1 root root 168875 Feb 11  2009 nmon_x86_opensuse10
-rw-rw-rw-  1 root root 152131 Feb 12  2009 nmon_x86_rhel45
-rw-rw-rw-  1 root root 174171 Feb 12  2009 nmon_x86_sles10
-rw-rw-rw-  1 root root 167781 Feb 12  2009 nmon_x86_fedora10
-rw-rw-rw-  1 root root 167957 Feb 14  2009 nmon_x86_rhel52
-rw-rw-rw-  1 root root 183215 Feb 14  2009 nmon_x86_ubuntu810
-rw-rw-rw-  1 root root 154107 Feb 14  2009 nmon_x86_sles9
drwxr-xr-x. 2 root root   4096 May 17  2013 rh
drwxr-xr-x  3 root root   4096 Jun 19 10:29 ibm
-rw-r--r--  1 root root 515920 Oct  9 03:42 nmon_x86_12a.zip
-rw-r--r--  1 root root 167957 Oct  9 03:44 nmon
[root@db87:/opt] $ cp nmon /bin/nmon
[root@db87:/opt] $ cp nmon /usr/bin/nmon
[root@db87:/opt] $ cp nmon /usr/local/bin/nmon
[root@db87:/opt] $nmon
-bash: /usr/local/bin/nmon: Permission denied
[root@db87:/opt] $./nmon
-bash: ./nmon: Permission denied
[root@db87:/opt] $cd /usr/local/bin
[root@db87:/usr/local/bin] $ls -l
total 168
lrwxrwxrwx 1 root root     32 Jun 20 09:59 db2ls -> /opt/ibm/db2/V10.1/install/db2ls
-rw-r--r-- 1 root root 167957 Oct  9 03:45 nmon
[root@db87:/usr/local/bin] $chmod 777 /bin/nmon /usr/bin/nmon /usr/local/bin/nmon
[root@db87:/usr/local/bin] $nmon
+nmon-12a------[H for help]---Hostname=db87---------Refresh= 2secs ---03:47.22-------------------------------------------------------+
|                                                                                                                                    |
|  ------------------------------       For help type H or ...                                                                       |
|  #    #  #    #   ####   #    #        nmon -?  - hint                                                                             |
|  ##   #  ##  ##  #    #  ##   #        nmon -h  - full                                                                             |
|  # #  #  # ## #  #    #  # #  #                                                                                                    |
|  #  # #  #    #  #    #  #  # #       To start the same way every time                                                             |
|  #   ##  #    #  #    #  #   ##        set the NMON ksh variable                                                                   |
|  #    #  #    #   ####   #    #                                                                                                    |
|  ------------------------------                                                                                                    |
|                                                                                                                                    |
|  Use these keys to toggle statistics on/off:                                                                                       |
|     c = CPU        l = CPU Long-term   - = Faster screen updates                                                                   |
|     m = Memory     j = Filesystems     + = Slower screen updates                                                                   |
|     d = Disks      n = Network         V = Virtual Memory                                                                          |
|     r = Resource   N = NFS             v = Verbose hints                                                                           |
|     k = kernel     t = Top-processes   . = only busy disks/procs                                                                   |
|     h = more options                   q = Quit                                                                                    |
|------------------------------------------------------------------------------------------------------------------------------------|
|                                                                                                                                    
+------------------------------------------------------------------------------------------------------------------------------------+
+nmon-12a------[H for help]---Hostname=db87---------Refresh= 2secs ---03:48.09-------------------------------------------------------+
| Memory Stats ----------------------------------------------------------------------------------------------------------------------|
|                RAM     High      Low     Swap                                                                                      |
| Total MB      1893.4   1161.9    731.4   2871.1                                                                                    |
| Free  MB      1144.4    745.2    399.2   2871.1                                                                                    |
| Free Percent    60.4%    64.1%    54.6%   100.0%                                                                                   |
|             MB                  MB                  MB                                                                             |
|                      Cached=   453.2     Active=   264.0                                                                           |
| Buffers=   125.3 Swapcached=     0.0  Inactive =   407.1                                                                           |
| Dirty  =     0.0 Writeback =     0.0  Mapped   =   101.4                                                                           |
| Slab   =    55.1 Commit_AS =  1725.5 PageTables=     4.7                                                                           |
|------------------------------------------------------------------------------------------------------------------------------------|
|                                                                                                                                    |
|                                                                                                                                    |
|                                                                                                                                    |
|                                                        

利用nmon监控性能,并且声称excel展示
[db2ecds@db87:~] $ nmon -f -s 10 -c 60
[db2ecds@db87:~] psef|grepnmondb2ecds1036610244018:38pts/000:00:00nmondb2ecds105531019:12pts/000:00:00nmonfs10c60db2ecds1061810244019:12pts/000:00:00grepnmon[db2ecds@db87: ] ls -ltr
total 146872
drwxr-xr-x 6 db2ecds db2igrp1 4096 Jun 20 11:44 tmptbs
drwxr-xr-x 5 db2ecds db2igrp1 4096 Jun 20 11:44 log
drwxr-xr-x 4 db2ecds db2igrp1 4096 Nov 2 15:06 backup
-rw-rw-r– 1 db2ecds db2ecds 28162 Nov 2 19:12 db87_171102_1912.nmon

ftp get下来,然后利用nmon_analyser生成excel。
nmon_analyser压缩包解压后有两个文件,一个word,一个excel,打开excel,点击Analyse nomn data按钮,导入之前get来下的.nmon文件,(打不开的话要启用excel的宏功能)。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值