由于这几天比较忙,参加了quest的一个培训,osw接下来的很久没有补上了。现在大概看下 oswg的东西
owsg 是一个数据解析绘图工具,在OSW v2.0.0 或更高版本中已经绑定了owsg,
owsg能解析vmstat , iostat 所收集到的数据绘制成图。要使用oswg,需要java的环境
1.4.2或者更高版本
支持的平台
AIX
Tru64
Solaris
HP-UX
Linux
Windows XP
前面已经提到,oswg已经绑定在了osw v2.0.0.或更高版本中了,所以 你只需要检验下就行了
如果是跑的oracle数据库那么java就已经安装上了,如果没有请到 http://java.sun.com/.下载
java -version
owsg能解析vmstat , iostat 所收集到的数据绘制成图。要使用oswg,需要java的环境
1.4.2或者更高版本
支持的平台
AIX
Tru64
Solaris
HP-UX
Linux
Windows XP
前面已经提到,oswg已经绑定在了osw v2.0.0.或更高版本中了,所以 你只需要检验下就行了
如果是跑的oracle数据库那么java就已经安装上了,如果没有请到 http://java.sun.com/.下载
java -version
java version "1.4.2"
gcj (GCC) 3.4.6 20060404 (Red Hat 3.4.6-10)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
gcj (GCC) 3.4.6 20060404 (Red Hat 3.4.6-10)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
你可以就使用oracle提供的java环境,下面是个例子
$ cd $ORACLE_HOME/jre/1.4.2/bin
$ setenv PATH $ORACLE_HOME/jre/1.4.2/bin:$PATH ==主要就是把这个加到你想用的用户环境变量下去
$ setenv PATH $ORACLE_HOME/jre/1.4.2/bin:$PATH ==主要就是把这个加到你想用的用户环境变量下去
好了 环境也弄好了,开始启动oswg了吧 呵呵
oswg需要你给他你收集的东西的目录,就是osw那个archive目录,用-i参数指定
[oracle@orabak_42 bin]$ ./java -jar /data/tools/osw/oswg.jar -i /data/tools/osw/archive/
Starting OSWg V3.0.0
OSWatcher Graph Written by Oracle Center of Expertise
Copyright (c) 2008 by Oracle Corporation
OSWatcher Graph Written by Oracle Center of Expertise
Copyright (c) 2008 by Oracle Corporation
Parsing Data. Please Wait...
Parsing file orabak_42_vmstat_10.05.23.2000.dat ...
Parsing file orabak_42_vmstat_10.05.23.2100.dat ...
Parsing file orabak_42_vmstat_10.05.23.2200.dat ...
Parsing file orabak_42_vmstat_10.05.23.2300.dat ...
Parsing file orabak_42_vmstat_10.05.24.0000.dat ...
Parsing file orabak_42_vmstat_10.05.24.0100.dat ...
Parsing file orabak_42_vmstat_10.05.24.0200.dat ...
Parsing file orabak_42_vmstat_10.05.24.0300.dat ...
Parsing file orabak_42_vmstat_10.05.24.0400.dat ...
Parsing file orabak_42_vmstat_10.05.24.0500.dat ...
Parsing file orabak_42_vmstat_10.05.24.0600.dat ...
Parsing file orabak_42_vmstat_10.05.24.0700.dat ...
Parsing file orabak_42_vmstat_10.05.24.0800.dat ...
Parsing file orabak_42_vmstat_10.05.24.0900.dat ...
Parsing file orabak_42_vmstat_10.05.24.1000.dat ...
Parsing file orabak_42_vmstat_10.05.24.1100.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 2 to Display CPU Utilization Graphs
Enter 3 to Display CPU Other Graphs
Enter 4 to Display Memory Graphs
Enter 6 to Generate All CPU Gif Files
Enter 7 to Generate All Memory Gif Files
Enter 7 to Generate All Memory 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 Q to Quit Program
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 Q to Quit Program
Please Select an Option:1
你选择1,就会出现对cpu process queue 的绘图,很方便。Q 推出
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/16719800/viewspace-663532/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/16719800/viewspace-663532/