Oracle OS Watcher Black Box Analyzer OSWBBA
Best Practices
Pro-Active Problem Avoidance and Diagnostic Collection
Document 1477599.1 Best Practices Around Data Collection For Performance Issues
- AIX
- Solaris
- HP-UX
- Linux
- Windows XP
| $ java -version |
| //Note: the location of the jre is in $ORACLE_HOME/jre/1.4.2/bin //now put this location in the UNIX PATH: $ export PATH=$ORACLE_HOME/jre/1.4.2/bin:$PATH |
| $java -jar oswbba.jar -i /u02/home/osw/archive Starting OSWbba V4.0.0 OSWatcher Black Box Analyzer Written by Oracle Center of Expertise Copyright (c) 2012 by Oracle Corporation Parsing Data. Please Wait… 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: |
| $java -jar -Xmx512M oswbba.jar -i /u02/home/oswbb/archive Starting oswbba V4.0.0 OSWatcher Black Box Analyzer Written by Oracle Center of Expertise Copyright (c) 2012 by Oracle Corporation Parsing Data. Please Wait… |
| $ls coesrv40.us.oracle.com_vmstat_13.01.09.1300.dat coesrv40.us.oracle.com_vmstat_13.01.09.1400.dat coesrv40.us.oracle.com_vmstat_13.01.09.1500.dat coesrv40.us.oracle.com_vmstat_13.01.09.1600.dat coesrv40.us.oracle.com_vmstat_13.01.09.1700.dat coesrv40.us.oracle.com_vmstat_13.01.09.1800.dat coesrv40.us.oracle.com_vmstat_13.01.09.1900.dat coesrv40.us.oracle.com_vmstat_13.01.09.2000.dat coesrv40.us.oracle.com_vmstat_13.01.09.2100.dat coesrv40.us.oracle.com_vmstat_13.01.09.2200.dat coesrv40.us.oracle.com_vmstat_13.01.09.2300.dat coesrv40.us.oracle.com_vmstat_13.01.10.0000.dat coesrv40.us.oracle.com_vmstat_13.01.10.0100.dat coesrv40.us.oracle.com_vmstat_13.01.10.0200.dat coesrv40.us.oracle.com_vmstat_13.01.10.0300.dat coesrv40.us.oracle.com_vmstat_13.01.10.0400.dat coesrv40.us.oracle.com_vmstat_13.01.10.0500.dat 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 |
|
java -jar oswbba.jar -i
|
|
OPTIONS
The following options are supported: |
|
|
1..3
|
These options display graphs of specific CPU components of vmstat. Option 1 displays the process run, wait and block queues. Option 2 displays CPU utilization graphs for system, user and idle. Option 3 displays graphs for context switches and interrupts. |
|
4
|
This option displays memory graphs for free memory and available swap.. |
|
5
|
This option uses the extended disk statistics option of iostat to display a list of all devices for solaris, aix and linux platforms only. The device name along with the average service time of each device is then listed. The user then selects one of the devices out of the list of devices. Graphs are available for reads/second, writes/second, service time and percent busy. |
|
6..8
|
These options generate images of the graph to a file without displaying them to the screen. All graphs for that specific category, CPU, memory or IO will be generated and placed in the directory where oswbba is located. To override this directory and name an alternative location to place these files use option L discussed below. |
|
L
|
User specified location of an existing directory to place any gif files generated by oswbba. This overrides the oswbba automatic convention for placing all gif files in the /gif directory. This directory must pre-exist! |
|
A
|
This option analyzes the files in the archive and produces a report |
|
P
|
Generates an html profile. |
|
T
|
By default OSWbba parses all the OSWbb log files contained in the input directory and the default graphs are based on the entire time span of all the logs. By default, OSWbb keeps the last 48 hours of logs in the archive. This means the default graph will graph all 48 hours of of data. This option allows the user to specify a different subset of times within the entire collection . An example would be only to graph a 2 hour period out of the entire 48 hour collection. |
|
D
|
This option resets the graphing timescale back to the time encompassing the entire log collection. |
|
R
|
This option removes all previously displayed graphs from the screen. |
|
Q
|
Exits the program. |
| java -jar oswbba.jar -i -P -L -6 -7 -8 -B -E
Example: java -jar oswbba.jar -i archive -6 -7 -P tuesday_crash |
|
OPTIONS
The following options are supported: |
|
|
-i
|
Required. This is the input archive directory location. |
|
-6
|
Same as option 6 from the menu. Will generate all cpu gif files. |
|
-7
|
Same as option 7 from the menu. Will generate all memory gif files. |
|
-8
|
Same as option 8 from the menu. Will generate all disk gif files. |
|
-L
|
User specified location of an existing directory to place any gif files generated by OSWbba. This overrides the OSWbba automatic convention for placing all gif files in the /gif directory. This directory must pre-exist! |
|
-A
|
Same as option A above. This option analyzes the files in the archive and produces a report |
|
-START
|
Used with the analysis option to specify the first file located in the oswvmstat directory to analyze. |
|
-STOP
|
Used with the analysis option to specify the last file located in the oswvmstat directory to analyze. |
|
-P
|
User specified name of the html profile generated by OSWbba. This overrides the oswbba automatic naming convention for html profiles. All profiles whether user specified named or auto generated named will be located in the /profile directory. |
|
-B
|
Same as option T from the menu. The start time will allow the user to select a start time from within the archive of files to graph/profile. This overrides the default start time which is the earliest time entry in the archive directory. The format of the start time is Mon DD HH:MM:SS YYYY. (Example :Jul 25 11:58:01 2007). An end time is required if selecting this option. |
|
-E
|
Same as option T from the menu. The end time will allow the user to select an end time from within the archive of files to graph/profile. This overrides the default end time which is the latest time entry in the archive directory. The format of the end time is Mon DD HH:MM:SS YYYY. (Example :Jul 25 11:58:01 2007). A start time is required if selecting this option. |
|
-F
|
Filename of a text file containing a list of options. The user can script as many options as desired by using this option. If the -F option is entered on the command line all other options are ignored and commands are only allowed through the file interface. See a sample file named oswbba_input.txt in the src directory. |
| java -jar oswbba.jar -i -F
Example: java -jar oswbba.jar -i archive -F src/oswbba_input.txt |