統(tǒng)計(jì)

          留言簿(1)

          DB

          Others

          QA

          Tech Website

          閱讀排行榜

          評(píng)論排行榜

          不錯(cuò)的Linux性能監(jiān)控工具--dstat

          OS實(shí)時(shí)監(jiān)控工具dstat,整合了vmstat, iostat, ifstat, netstat等常見os監(jiān)控工具的優(yōu)點(diǎn),輸出的結(jié)果簡(jiǎn)單直觀,并且結(jié)果可以保存到csv文件。
          dokie@ubuntu:~$ dstat
          ----total-cpu-usage---- -dsk/total- -net/total- ---paging-- ---system--
          usr sys idl wai hiq siq
          | read  writ| recv  send|  in   out | int   csw 
           
          14   5  78   3   0   0| 553k  109k|   0     0 |  83B  989B| 983  2190 
            
          8   2  90   0   0   0|   0     0 |2076B 1383B|   0     0 |1076  1407 
            
          9   3  89   0   0   0|   0    72k|7530B  420B|   0     0 | 721  1501 
            
          9   4  87   0   0   0|   0     0 |9547B  564B|   0     0 | 750  1474 
            
          8   2  89   0   0   0|   0     0 |  12k  672B|   0     0 | 772  1681 
            
          9   2  89   0   0   0|   0     0 |  13k  792B|   0     0 | 677  1396 


          dokie@ubuntu:~$ dstat -h
          Usage: dstat [
          -afv] [options..] [delay [count]]
          Versatile tool 
          for generating system resource statistics

          Dstat options:
            
          -c, --cpu              enable cpu stats
               
          -0,3,total           include cpu0, cpu3 and total
            
          -d, --disk             enable disk stats
               
          -D total,hda           include hda and total
            
          -g, --page             enable page stats
            
          -i, --int              enable interrupt stats
               
          -5,eth2              include int5 and interrupt used by eth2
            
          -l, --load             enable load stats
            
          -m, --mem              enable memory stats
            
          -n, --net              enable network stats
               
          -N eth1,total          include eth1 and total
            
          -p, --proc             enable process stats
            
          -r, --io               enable io stats (I/O requests completed)
            
          -s, --swap             enable swap stats
               
          -S swap1,total         include swap1 and total
            
          -t, --time             enable time/date output
            
          -T, --epoch            enable time counter (seconds since epoch)
            
          -y, --sys              enable system stats

            
          --aio                  enable aio stats
            
          --fs                   enable fs stats
            
          --ipc                  enable ipc stats
            
          --lock                 enable lock stats
            
          --raw                  enable raw stats
            
          --socket               enable socket stats
            
          --tcp                  enable tcp stats
            
          --udp                  enable udp stats
            
          --unix                 enable unix stats
            
          --vm                   enable vm stats

            
          -M stat1,stat2         enable external plugins
               
          --mods stat1,stat2

            
          --list                 list all internal and external plugins

            
          -a, --all              equals -cdngy (default)
            
          -f, --full             expand -C, -D, -I, -N and -S discovery lists
            
          -v, --vmstat           equals -pmgdsc -D total

            
          --integer              show integer values
            
          --nocolor              disable colors (implies --noupdate)
            
          --noheaders            disable repetitive headers
            
          --noupdate             disable intermediate updates
            
          --output file          write CSV output to file

            delay is the delay in seconds between each update
            count is the number of updates to display before exiting
            The 
          default delay is 1 and count is unspecified (unlimited)


          常用的命令:dstat -cdlmnpsy
          導(dǎo)出為CVS:
          dstat -ta --output osstat.csv

          posted on 2011-03-17 00:19 XXXXXX 閱讀(801) 評(píng)論(0)  編輯  收藏 所屬分類: Linux&Unix

          主站蜘蛛池模板: 育儿| 上虞市| 绥化市| 潮安县| 昭通市| 宁安市| 红河县| 肇东市| 城口县| 汪清县| 施秉县| 龙井市| 涟源市| 洛阳市| 易门县| 罗山县| 寿宁县| 多伦县| 时尚| 钦州市| 沾化县| 鹤岗市| 武邑县| 三穗县| 长垣县| 嘉义县| 溆浦县| 漳平市| 华坪县| 肥西县| 旺苍县| 伊金霍洛旗| 临泽县| 太和县| 射洪县| 班玛县| 晋中市| 建阳市| 监利县| 平乐县| 屯昌县|