一 官方参考OSWatcher (Includes: [Video]) (文档 ID 301137.1),最新版本为811

二 使用文档Document 1531223.1 OSWatcher User Guide

三 Oswatch会调用如下命令:

ps

top

ifconfig

mpstat

iostat

netstat

traceroute

vmstat

sar (HP-UX Only)

cpuinfo (Linux Only)

meminfo (Linux Only)

slabinfo (Linux Only)

说明:其他包大都是sysstat包,或系统基本包,需注意此命令在kernel-debug包里;

**四安装**

tar xvf oswbb.tar

chmod 744 *

对应的删除也很简单rm -fr oswbb

**4.1配置收集路径**

export OSWBB_ARCHIVE_DEST=/root/oswbb/archive
./startOSWbb.sh

启动时会看到:

> Starting OSWatcher v8.1.1  on Mon Nov 27 11:17:29 CST 2017
> With SnapshotInterval = 30
> With ArchiveInterval = 48

默认情况下:This would start the tool and collect data at default 30 second intervals and log the last 48 hours of data to archive files.

如果想修改成60秒,保留最近10小时的,参考如下执行:

./startOSWbb.sh 60 10 gzip

./startOSWbb.sh 60 10 gzip /u02/tools/oswbb/archive

停止

./stopOSWbb.sh

5.分析

日志生成目录如下:

oswiostat
oswmpstat
oswnetstat
oswprvtnet
oswifconfig
oswps
oswtop
oswvmstat

分析工具oswbba(OSWatcher Analyzer User Guide (文档 ID 461053.1))

java -version
java -jar oswbba.jar -i ./archive
 
Starting OSW Analyzer V8.1.1
OSWatcher Analyzer Written by Oracle Center of Expertise
Copyright (c)  2017 by Oracle Corporation
 
Parsing Data. Please Wait...
 
Scanning file headers for version and platform info...
 
Parsing file 12crac2_iostat_17.11.29.1400.dat ...
Parsing file 12crac2_iostat_17.11.29.1500.dat ...
Parsing file 12crac2_iostat_17.11.29.1600.dat ...
This directory already exists. Rewriting...

java -jar oswbba.jar -i ./archive -START coesrv40.us.oracle.com_vmstat_13.01.09.1300.dat -STOP coesrv40.us.oracle.com_vmstat_13.01.09.2000.dat -s

Enter D to Generate DashBoard,里面有htm文件,可以查看图例;

[转帖]oswatch--Linux_服务器

经过多年进化,这玩意越来越好用了;

需注意的是java的版本不要太高,最好用oracle 11.2.0.4自带的JAVA,

export JAVA_HOME=$ORACLE_HOME/jdk

相关用法在./docs/

6 打包提交SR

./tar_up_full_archive.sh