OSWatch


OSWatcher 简介

OSWatcher (oswbb) 是一个可供用户下载的工具,可以用来抓取操作系统的性能指标。
作为性能诊断数据搜集最佳实践的一部分,安装和运行 oswbb 可以帮助 Oracle 技术支持和开发更快解决您的SR。
oswbb 由两个部分组成:

1. oswbb: 一个 unix 操作系统的 shell script,来搜集和存储数据。

2. oswbba: 一个 java 工具来自动分析数据,提供建议,并且生成一个包含图形的 html 文档。

这些组件都包含在一个可供下载的 tar 文件中。


首先确认系统已安装了相应的工具:

[root@erpdb02 local]# find /u01 -name oswbb
/u01/patches/oswbb
[root@erpdb02 local]# cd /u01/patches/oswbb

[root@erpdb02 oswbb]# ls -lrt startOSWbb*
-rwxr-xr-x 1 oracle oinstall 2574 Feb 27  2015 startOSWbb.sh
[root@erpdb02 oswbb]# 

再看是否有OSW后台进程在运行:

[root@erpdb02 ~]# ps -ef | grep OSW
root      13872      1  0 Jun12 ?        01:51:22 /bin/sh ./OSWatcher.sh 15 168
root      14416  13872  0 Jun12 ?        00:15:21 /bin/sh ./OSWatcherFM.sh 168 /u01/patches/oswbb/archive
root      56386  54208  0 15:04 pts/2    00:00:00 grep OSW
[root@erpdb02 ~]#

查看收集的统计信息位置:

[root@erpdb02 osw]# find /u01 -name oswbb
/u01/patches/oswbb
[root@erpdb02 osw]# cd /u01/patches/oswbb
[root@erpdb02 oswbb]#

[root@erpdb02 oswbb]# cd archive/
[root@erpdb02 archive]# ls -lrt
total 184
drwxr-xr-x 2 root root  4096 Jun 12 15:52 oswprvtnet
drwxr-xr-x 2 root root 20480 Dec  8 15:01 oswvmstat
drwxr-xr-x 2 root root 20480 Dec  8 15:01 oswtop
drwxr-xr-x 2 root root 20480 Dec  8 15:01 oswslabinfo
drwxr-xr-x 2 root root 20480 Dec  8 15:01 oswps
drwxr-xr-x 2 root root 20480 Dec  8 15:01 oswnetstat
drwxr-xr-x 2 root root 20480 Dec  8 15:01 oswmpstat
drwxr-xr-x 2 root root 20480 Dec  8 15:01 oswmeminfo
drwxr-xr-x 2 root root 20480 Dec  8 15:01 oswiostat
drwxr-xr-x 2 root root 20480 Dec  8 15:01 oswifconfig
[root@erpdb02 archive]#

如何进行数据分析:

OS Watcher的全名为Operation System Watcher Black Box(简称oswbb)。oswbb只负责收集数据,并不能够直接分析结果。

Oracleoswbb 4.0之后,提供了专门的分析图形化工具,oswbbaOperation System Watcher Black Box Analyzer)被加入到

oswbb工具包中,对数据可以进行完全的分析和处理。oswbba是一个基于java的软件,要求运行系统中必须安装单独的java程序,

并且配置适当的处理空间。由于oswbb是一个纯绿色软件,我们甚至可以把数据拷贝到windows环境上进行处理。

-运行命令,oswbba.jaroswbb目录下

D:\wrz\OSWatcher\oswbb >java -jar oswbba.jar -i  D:\wrz\OSWatcher\archive

/u01/PSPROD/oracle/product/11.2.0.4/jdk/bin/java  -jar  -Xmx512M  oswbba.jar  -i /u01/patches/oswbb/archive/


MD分析了半天....

Parsing file erpdb02.szgas.com_ps_15.12.07.1300.dat ...
Parsing file erpdb02.szgas.com_ps_15.12.07.1400.dat ...
Parsing file erpdb02.szgas.com_ps_15.12.07.1500.dat ...
Parsing file erpdb02.szgas.com_ps_15.12.07.1600.dat ...
Parsing file erpdb02.szgas.com_ps_15.12.07.1700.dat ...
Parsing file erpdb02.szgas.com_ps_15.12.07.1800.dat ...
Parsing file erpdb02.szgas.com_ps_15.12.07.1900.dat ...
Parsing file erpdb02.szgas.com_ps_15.12.07.2000.dat ...
Parsing file erpdb02.szgas.com_ps_15.12.07.2100.dat ...
Parsing file erpdb02.szgas.com_ps_15.12.07.2200.dat ...
Parsing file erpdb02.szgas.com_ps_15.12.07.2300.dat ...
Parsing file erpdb02.szgas.com_ps_15.12.08.0000.dat ...
Parsing file erpdb02.szgas.com_ps_15.12.08.0100.dat ...
Parsing file erpdb02.szgas.com_ps_15.12.08.0200.dat ...
Parsing file erpdb02.szgas.com_ps_15.12.08.0300.dat ...
Parsing file erpdb02.szgas.com_ps_15.12.08.0400.dat ...
Parsing file erpdb02.szgas.com_ps_15.12.08.0500.dat ...
Parsing file erpdb02.szgas.com_ps_15.12.08.0600.dat ...
Parsing file erpdb02.szgas.com_ps_15.12.08.0700.dat ...
Parsing file erpdb02.szgas.com_ps_15.12.08.0800.dat ...
Parsing file erpdb02.szgas.com_ps_15.12.08.0900.dat ...
Parsing file erpdb02.szgas.com_ps_15.12.08.1000.dat ...
Parsing file erpdb02.szgas.com_ps_15.12.08.1100.dat ...
Parsing file erpdb02.szgas.com_ps_15.12.08.1200.dat ...
Parsing file erpdb02.szgas.com_ps_15.12.08.1300.dat ...
Parsing file erpdb02.szgas.com_ps_15.12.08.1400.dat ...
Parsing file erpdb02.szgas.com_ps_15.12.08.1500.dat ...
Parsing file erpdb02.szgas.com_ps_15.12.08.1600.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 Alter Graph Time Scale Only (Does not change analysis dataset)
Enter D to Return to Default Graph Time Scale
Enter R to Remove Currently Displayed Graphs
Enter A to Analyze Data
Enter S to Analyze Subset of Data(Changes analysis dataset including graph time scale)
Enter P to Generate A Profile
Enter X to Export Parsed Data to File
Enter Q to Quit Program
Please Select an Option:1
>>> Input Error: 
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
java.awt.HeadlessException: 
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
at java.awt.Window.<init>(Window.java:319)
at java.awt.Frame.<init>(Frame.java:419)
at java.awt.Frame.<init>(Frame.java:384)
at g.a(Unknown Source)
at OSWGraph.OSWGraph.main(Unknown Source)
[root@erpdb02 oswbb]# 





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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值