一 官方參考OSWatcher (Includes: [Video]) (文檔 ID 301137.1),最新版本為811
成都創(chuàng)新互聯(lián)專注于企業(yè)網(wǎng)絡(luò)營(yíng)銷推廣、網(wǎng)站重做改版、臨潭網(wǎng)站定制設(shè)計(jì)、自適應(yīng)品牌網(wǎng)站建設(shè)、H5高端網(wǎng)站建設(shè)、成都做商城網(wǎng)站、集團(tuán)公司官網(wǎng)建設(shè)、成都外貿(mào)網(wǎng)站建設(shè)公司、高端網(wǎng)站制作、響應(yīng)式網(wǎng)頁(yè)設(shè)計(jì)等建站業(yè)務(wù),價(jià)格優(yōu)惠性價(jià)比高,為臨潭等各大城市提供網(wǎng)站開發(fā)制作服務(wù)。
二 使用文檔Document 1531223.1 OSWatcher User Guide
三 Oswatch會(huì)調(diào)用如下命令:
ps
top
ifconfig
mpstat
iostat
netstat
traceroute
vmstat
sar (HP-UX Only)
cpuinfo (Linux Only)
meminfo (Linux Only)
slabinfo (Linux Only)
說明:其他包大都是sysstat包,或系統(tǒng)基本包,需注意此命令在kernel-debug包里;
**四安裝**
tar xvf oswbb.tar
chmod 744 *
對(duì)應(yīng)的刪除也很簡(jiǎn)單rm -fr oswbb
**4.1配置收集路徑**
export OSWBB_ARCHIVE_DEST=/root/oswbb/archive ./startOSWbb.sh
啟動(dòng)時(shí)會(huì)看到:
> Starting OSWatcher v8.1.1 on Mon Nov 27 11:17:29 CST 2017 > With SnapshotInterval = 30 > With ArchiveInterval = 48
默認(rèn)情況下: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小時(shí)的,參考如下執(zhí)行:
./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文件,可以查看圖例;
經(jīng)過多年進(jìn)化,這玩意越來越好用了;
需注意的是java的版本不要太高,最好用oracle 11.2.0.4自帶的JAVA,
export JAVA_HOME=$ORACLE_HOME/jdk
;
相關(guān)用法在./docs/
6 打包提交SR
./tar_up_full_archive.sh