OSWbb操作步骤

系统性能是一个综合性结果的体现。对最终用户而言,使用系统的体验感可能就是系统是不是跑得快、在规定时间内完成作业、业务高峰期能否快速打开页面。但是,对系统设计、开发和运维人员来讲,系统性能是一个综合性的指标,涉及系统各个组成部分的软硬件配置和运行状态。

对于数据库端出现的问题,我们可以使用诸如AWR报告、ASH报告进行全方位的监控和诊断。但是对于操作系统,我们通常需要专门的监控工具,甚至专门的软件。实际上,各个操作系统(AIX、Linux)都提供了一些基本的性能监控检查工具,如topas、iostat等,我们需要做的就是周期性的进行工具调用和数据收集、分析。Oracle提供的免费工具OS Watcher就是这样的利器。

1、软件获取和安装

OS Watcher是Oracle提供给授权客户的一个免费使用小工具,我们可以通过官方支持网站MOS上下载,文章号Note: 301137.1。

我们从网站下载的文档是一个压缩格式包文件。OS Watcher作为轻量型性能监控软件,自身运行的低消耗是非常重要的。OS Watcher本身不需要安装,软件就是一系列的shell脚本文件。

笔者下载的文件是最新的版本6.01,压缩格式文件为oswbb601.tar。顺便说一句,OS Watcher目前支持Linux和Unix系列的操作系统,Windows平台目前还不支持~

安装OS Watcher的过程及其简单,我们首先创建一个专门运行的目录,之后将文件传入到目录中。

-------------------------------------开始测试

Example 1:

./startOSWbb.sh 60 10

 

This would startthe tool and collect data at 60 second intervals and log the last 10 hours ofdata to archive files.

--这个命令每隔60秒收集一次,数据保留10个小时。

 

Example 2:

./startOSWbb.sh

NOTE: This woulduse the default values of 30, 48 and collect data at 30 second intervals andlog the last 48 hours of data to archive files.

--没有指定参数,使用默认值

 

Example 3:

nohup ./startOSWbb.sh 60 10 &

This would startthe tool, put the process in the background, enable to the tool to continuerunning after the session has been terminated, collect data at 60 secondintervals, and log the last 10 hours of data to archive files.

--使用nohup让脚本后台执行

1、linux上部署,需要图形界面,所以需要打开Xmanager进行连接

 

2、进入oswbb目录

cd  /data/oswbb/oswbb

 

3、archive  里记录了oswbb记录机器文件以及一些日期文件包含:

oswiostat   oswmpstat   oswnetstat  oswprvtnet  oswps       oswtop      oswvmstat

写将此文件复制一份,原因就是要原始的文件里记录的日期太多。

cp  -r archive  archive20130611

4、运行oswbb.jar

/oracle/app/product/10.2.0/jdk/jre/bin/java -jar  oswbba.jar -i archive_9_20130611

之后会刷出一下目录下的文件列表

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:

选择6、7、8感觉就可以啦。

生成后的gif文件在

cd /oracle/oswbb/oswbb下的gif文件夹下。

猜你喜欢

转载自andyniu.iteye.com/blog/1887259