你好,游客 登录 注册 搜索
背景:
阅读新闻

使用OS Watcher监控操作系统

[日期:2013-02-26] 来源:Linux社区  作者:realkid4 [字体:大 中 小]

3、OS Watcher收集结果处理

OS Watcher的全名为Operation System Watcher Black Box(简称oswbb)。oswbb只负责收集数据,并不能够直接分析结果。Oracle在oswbb 4.0之后,提供了专门的分析图形化工具,oswbba(Operation System Watcher Black Box Analyzer)被加入到oswbb工具包中,对数据可以进行完全的分析和处理。

oswbba是一个基于java的软件,要求运行系统中必须安装单独的java程序,并且配置适当的处理空间。由于oswbb是一个纯绿色软件,我们甚至可以把数据拷贝到windows环境上进行处理。

--运行命令,oswbba.jar在oswbb目录下

C:\Users\Tomas\Desktop\OSWatch\oswbb>java -jar oswbba.jar -i C:\Users\Tomas\Desktop\OSWatch\oswbb\archive

 

Starting OSW Black Box Analyzer V6.0.1

OSWatcher Black Box Analyzer Written by Oracle Center of Expertise

Copyright (c) 2012 by Oracle Corporation

 

Parsing Data. Please Wait...

 

Scanning file headers for version and platform. info...

 

 

Parsing file bspdev.localdomain_iostat_13.02.22.1500.dat ...

Timestamp Error. Expected format: May 3 16:11:12 2006.

Timestamp Error. Found format: Feb 22 15:04:35 2013

Timestamp Error. Expected format: May 3 16:11:12 2006.

Timestamp Error. Found format: Feb 22 15:05:10 2013

Timestamp Error. Expected format: May 3 16:11:12 2006.

 

 

An exception occured in insertVmstatLists on line 0

An exception occured in insertVmstatLists on line 0

 

Parsing file bspdev.localdomain_netstat_13.02.22.1500.dat ...

Parsing file bspdev.localdomain_top_13.02.22.1500.dat ...

 

No data found in input archive directory C:\Users\Tomas\Desktop\OSWatch\oswbb\archive

Please rerun oswbba with proper input directory containing OSW archive data.

Program aborting...

oswbba的处理包oswbba.jar就保存在oswbb目录中。参数-i表示处理的数据目录。此外,我们还有-START和-STOP参数用于执行处理的时间范围。

但是,在上面的调用中,我们失败了,主要原因是时间格式的差异让oswbba无法找到对应的处理文件。我们在linux环境上收集数据使用英文格式,所以,在Windows处理平台上,也需要进行转换。

我们只需要在控制面板的语言时间格式中,选择英文格式就可以了。

C:\Users\Tomas\Desktop\OSWatch\oswbb>java -jar oswbba.jar -i C:\Users\Tomas\Des

top\OSWatch\oswbb\archive

 

Starting OSW Black Box Analyzer V6.0.1

OSWatcher Black Box Analyzer Written by Oracle Center of Expertise

Copyright (c) 2012 by Oracle Corporation

 

Parsing Data. Please Wait...

 

Scanning file headers for version and platform. info...

Parsing file bspdev.localdomain_iostat_13.02.22.1500.dat ...

Parsing file bspdev.localdomain_vmstat_13.02.22.1500.dat ...

Parsing file bspdev.localdomain_netstat_13.02.22.1500.dat ...

Parsing file bspdev.localdomain_top_13.02.22.1500.dat ...

 

Parsing Completed.

 

Enter 1 to Display CPU Process Queue Graphs

Enter 2 to Display CPU Utilization Graphs

Enter 3 to Display CPU Other Graphs

Enter 4 to Display Memory Graphs

Enter 5 to Display Disk IO Graphs

 

Enter 6 to Generate All CPU Gif Files

Enter 7 to Generate All Memory Gif Files

Enter 8 to Generate All Disk Gif Files

 

Enter L to Specify Alternate Location of Gif Directory

Enter T to Specify Different Time Scale

Enter D to Return to Default Time Scale

Enter R to Remove Currently Displayed Graphs

Enter P to Generate A Profile

Enter A to Analyze Data

Enter Q to Quit Program

 

Please Select an Option:

linux
相关资讯       OS Watcher 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款