文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>dstat监控linux资源

dstat监控linux资源

时间:2010-05-24  来源:wyongit

dstat监控linux资源 下载地址:wget http://dag.wieers.com/rpm/packages/dstat/dstat-0.6.7-1.rh7.rf.noarch.rpm 官方网站:http://dag.wieers.com/rpm/packages/dstat/ Dstat的安装: wget http://dag.wieers.com/rpm/packages/dstat/dstat-0.6.7-1.rh7.rf.noarch.rpm
rpm -ivh dstat-0.6.7-1.rh7.rf.noarch.rpm
Dstat的使用:
安装完成后,执行 dstat 命令,默认情况它会收集-cpu-、-disk-、-net-、-paging-、-system-的数据,一秒钟收集一次。
默认输入 dstat 等于输入了dstat -cdngy 1或dstat -a 1;
推荐使用 date && dstat  -tclmdny 60 一分钟监视一次(注意调节显示的宽度,或去掉-t选项)。

于SysStat相比,Dstat拥有一个彩色的界面,在手动观察性能状况时,数据比较显眼容易观察;
而且Dstat支持即时刷新,譬如:输入 dstat 3,即每三秒收集一次,但最新的数据都会每秒刷新显示。
和SysStat相同的是,Dstat也可以收集指定的性能资源。譬如 dstat -c 即显示CPU的使用情况。

Dstat options:
  -c, --cpu              显示CPU情况
     -C 0,3,total           include cpu0, cpu3 and total
  -d, --disk             显示磁盘情况
     -D total,hda           include hda and total
  -g, --page             enable page stats
  -i, --int              enable interrupt stats
     -I 5,eth2              include int5 and interrupt used by eth2
  -l, --load             enable load stats
  -m, --mem              显示内存情况
  -n, --net              显示网络情况
     -N eth1,total          可以指定网络接口
  -p, --proc             enable process stats
  -s, --swap             显示swap情况
     -S swap1,total         可以指定多个swap
  -t, --time             enable time counter
  -y, --sys              enable system stats
  --ipc                  报告IPC消息队列和信号量的使用情况
  --lock                 enable lock stats
  --raw                  enable raw stats
  --tcp                  enable tcp stats
  --udp                  enable udp stats
  --unix                 enable unix stats
  -M stat1,stat2         enable external stats
     --mods stat1,stat2
  -a, --all              使用-cdngy 缺省的就是这样显示
  -f, --full             使用 -C, -D, -I, -N and -S 显示
  -v, --vmstat           使用-pmgdsc -D 显示
  --integer              show integer values
  --nocolor              disable colors (implies --noupdate)
  --noheaders            只显示一次表头以后就不显示了,使用重定向写入文件时很有用
  --noupdate             disable intermediate updates
  --output file          写入到CVS文件中

dstat -cdlmnpsy
在1024×768的屏幕上正好全部显示出来
别名  alias dstat='dstat -cdlmnpsy'
 
相关阅读 更多 +
排行榜 更多 +
阿克里危机手机版下载

阿克里危机手机版下载

飞行射击 下载
贪婪洞窟重生手游下载

贪婪洞窟重生手游下载

角色扮演 下载
贡贡托儿所手机版下载

贡贡托儿所手机版下载

休闲益智 下载