[转帖]THE OSWATCHER ANALYZER USER'S GUIDE
|
oswbba THE OSWATCHER ANALYZER USER'S GUIDE Carl Davis To see how to use this tool and it's different features you can view a series of short "how to do" videos in document 301137.1 Contents
Introduction The OSWatcher Analyzer (oswbba) is a utility that allows the user to graph and analyze data collected from running OSWatcher. In addition to providing graphing and reporting capabilities, the analyzer will look for problems and provide recommendations on how to resolve them. Analyzing data automatically avoids the time consuming task of manually inspecting all the files that OSWatcher collects. NOTE: oswbba now analyzes ExaWatcher and CHM data. Analyzing these collections requires the use of a special flag -EXA for ExaWatcher and -CHM for CHM JSON files. Best PracticesPro-Active Problem Avoidance and Diagnostic CollectionAlthough some problems may be unforeseen, in many cases problems may be avoidable if signs are detected early enough. Additionally, if an issue does occur, it is no use collecting information about that issue after the event. oswbb is one of the tools that support recommends for collecting such diagnostics. For information on suggested uses, other proactive preparations and diagnostics see: Document 1482811.1 Best Practices: Proactively Avoiding Database and Query Performance Issues
Document 1477599.1 Best Practices Around Data Collection For Performance Issues Overview oswbba is a graphing and analysis utility which comes bundled with OSWatcher. This utility is a stand-alone java program which requires java to be installed. Because oswbba is written in java, the OSWatcher files that have been collected on Unix/Linux, can be analyzed on different Unix/Linux/Windows platforms that have java installed. Additionally, oswbba requires an x-windows environment in order to use all of its features. oswbba analyzes OSWatcher archive directroy files (vmstat, iostat, top, ps, netstat, traceroute, pidstat, meminfo and HP-UX sar) , Exawatcher and CHM files and automatically looks for problems and tries to determine root cause if possible. In addition to providing analysis, oswbba has an integrated dashboard which allows visibility into the different subsystems (cpu, memory, i/o, network and also nfs (Linux only). Problems can be quickly identified and displayed on the dashboard. The analysis text report is integrated with the browser dashboard so both textual data and graphics can be accessed inside the same browser window. See the OSW_Analyzer.pdf in the docs directory for more information. License oswbba use is under Oracle's standard licensing terms and does not require additional licenses for use. Supported Platforms oswbba is certified to run on the following platforms. It now runs on MacOS:
Installing oswbba oswbba is a Oracle support tool which requires no installation. It comes bundled with OSWatcher and is a standalone java jar file. Consult the README.txt for details about system requirements. Starting oswbba This newest version requires java 8.0 or higher. Before starting the oswbba utility you must have java 8.0 or higher installed on your system. Java can be downloaded for free from https://java.com. Also if you are running Oracle you already have a version of java installed. To verify you have the correct version of java installed on your system issue the following command...
If java is not installed, contact your system administrator to get the current version of java installed. Alternatively, you can use the version of java that comes shipped with Oracle. Here is an example of using the version of java that comes shipped with the database...(depending upon the version of the database, the jre may be in a different location)
Once the correct version of java has been verified, you can start oswbba. Please CD to the oswbb subdirectory where the oswbba.jar file is located. oswbba requires an input directory to run. To specify the input directory you must use the -i option. The input directory is the fully qualified path name of an archive directory location containing the oswbb logs. The archive directory must contain the respective subdirectories--oswvmstat, oswiostat, oswps, oswtop, oswnetstat, etc. If you are running Linux or HP-UX, then additional directories are also created. It is important to note the program requires an archive directory name not an individual log directory name or individual filename.
Java Heap Errors on Startup oswbba parses all the archive files in memory prior to generating graphs or performing an analysis. If you have a large amount of files to parse you may need to allocate more memory to the java heap. If you experience any error messages regarding out of memory such as java.lang.OutOfMemoryError, you may have to increase the size of the java heap. To increase the size of the java heap use the -Xmx flag.
Stopping oswbba To stop the oswbba utility select option "Q" from the menu. Using oswbba oswbba has multiple user interface options. If oswbba is started as above, the user will be able to choose from a list of options on a menu. In all cases oswbba must be supplied the archive directory location with the -i flag. If the underlying data from the OSWatcher archive is not available, such as the case where the data collector is missing or cannot run due to permission issues, then the option to analyze that data will be missing from the menu of options. Using oswbba: Menu Option oswbba can be run with a menu driven user interface. This option gives the user the most flexibility and allows graphs to be displayed real-time. To start oswbba with the menu option issue the following on the command line...
After starting oswbba, a set of options will display. Enter an option value and hit return.
Using oswbba: Command Line Option All graphing, dashboard generation and analysis options are available to be passed into oswbba from the command line. Only the -i option is required. Use the table below to add additional options.
Understanding the (-D) and (-A) options The (-D) and (-A) options specify a unique directory name under the oswbba/analysis directory where the analysis files get generated. Note this is a directory name and not a filename. This is a change from previous releases. If no directory name is specified then a default directory name will be generated. In this case make sure to place the (-D) or (-A) options at the end of the list of options. Note that the (-D) and (-A) options are mutually exclusive. Selecting the (-D) option will automatically trigger an analysis (-A) option. Therefore, it is not necessary to put a (-A) option alongside a (-D) option. Selecting the (-A) option however, will not trigger a (-D) dashboard. In both cases, the user specified directory name must be unique or the program will terminate with a warning. Analyzing Exawatcher Files oswbba can analyze ExaWatcher files in addition to OSWatcher files. The input is the ExaWatcher archive directory and the outputs are the same if you were analyzing OSWatcher. This provides for a consistent user experience across different data collectors. It is very important to make sure all the Exawatcher files are uncompressed and all the uncompressed files are removed before analyzing the archive. You must also use the -EXA flag for ExaWatcher so the analyzer knows the input is not the default OSWatcher files but Exawatcher files instead. More examples are in the OSW_Analyzer.pdf in the docs directory
Specifying the Begin/End Time of an Analysis (Recommended Method) Starting with release 7.0, the begin and end times could be specified to limit the analysis to a particular time of interest. This behavior changed in release 7.2. Begin and end times can be controlled by using the command line options -b and -e. These options are available if you run from the command line or can be chosen from the menu with the -s option. To use this option you must specify the begin time and the end time. If you specify either parameter without specifying the other parameter, or one or both of these times are not valid, the program will default to the following values. A warning will also be written to inform you that you have not specified valid inputs and default parameters will be used instead. Note: This is new behavior that differs from previous versions. If -b is specified and no -e is specified then program warns the input is invalid and uses the last end date available in the archive. If -e is specified and no -b is specified then program warns the input is invalid and uses the first begin date available in the archive. If -b is specified and is before the first available date in the archive then the program uses the first available date in the archive. If -e is specified and is after the last available date in the archive then the program uses the last available date in the archive. Example. In this example your archive contains 17 hours worth of data in the oswvmstat directory. You want to only analyze the time beginning Jan 9 13:15:00 2013 and ending Jan 19 13:30:00 2013
Limiting the Analysis to a Subset of Files in Your Archive (No longer supported as of version 9.0) Previously if a user wanted to analyze only a specific time window all of the files in the archive would have to be parsed first. Starting in release 6.0, the analysis can be limited to a subset of files. This can be controlled by using the command line options -START and -STOP. These options are available if you run from the command line or if you want to use the menu. In either case, you must use the -START and -STOP option along with the -s option (to tell the analyzer you want to analyze only a subset of available files. To use this option you must specify the starting filename in the oswvmstat directory. oswbba only analyzes files in chronological order. To specify the starting filename locate a filename in the oswvmstat directory and specify it using the -START option. The -STOP option specifies the last file in the oswvmstat directory that you want to analyze. If these filenames are misspelled or cannot be found the analyzer will ignore the -START and -STOP options and analyze the entire contents of the archive. If you specify either parameter without specifying the other parameter the following default values will be assumed: If -START is specified and no -STOP is specified then the analysis continues through the last file in the oswvmstat directory. If -STOP is specified and no -START is specified then the analysis starts at the oldest file in the oswvmstat directory and continues through the file specified in the -STOP option. You must also specify the -s option to tell the analyzer you want to analyze only a subset of available files. If the -s flag is NOT specified the analyzer will analyze the entire contents of the archive. oswbba uses the times associated with these oswvmstat files for the other directories so that all iostat, top and netstat files will be analyzed during this time frame. Example. In this example your archive contains 17 hours worth of data in the oswvmstat directory. You want to only analyze files starting at 13.01.09.1300 through 13.01.09.2000
Ignoring Specific Directories From Analysis Because the archive directory can contain gigabytes worth of data, the analyzer can take some time to analyze extremely large files. The analyzer parses these files and stores the data into memory structures that grow in size as more files are parsed. This parsing will consume more and more memory potentially causing the analysis to take a longer time and may cause the maximum size specified by the jvm to be reached. In this case you will need to restart using a larger value for jvm (see the section named "Java Heap Errors on Startup" located in this document. This is normally only a problem if you have many days worth of data or you have thousands of processes on the machine making for large ps files. If you find this to be the case you can eliminate certain directories from being analyzed. You cannot however, eliminate vmstat data because this data is critical to any analysis performed by oswbba. There also may be times when resources on the machine may not be available to allow this kind of heavier processing. By eliminating the oswps directory, this more intensive data parsing and analysis can be eliminated or postponed until a later time. To eliminate specific directories from the analysis you must specify the appropriate flag when running oswbba. Flags are as follows:
An example of ignoring netstat and iostat data from analysis:
Limiting the PS Analysis You can control the amount of analysis done on the ps data with respect to process memory. The default now is to show only the top 10 processes which are increasing in memory consumption. In the case you want to see all memory allocations over time you can do this by including the -MEM_ALL parameter when analyzing the data from the command line option. This would be useful for example in the case you were experiencing a memory leak. Enabling this parameter however, will result in long analysis times as the ps files are normally large and all the data related to all processes is parsed, stored and analyzed. There may be times when resources on the machine may not be available to allow this kind of heavier processing. By limiting the memory analysis, this more intensive data parsing and analysis can be eliminated or postponed until a later time. An example of analyzing all process information contained in the ps directory :
Limiting the Pidstat Analysis Analyzing pidstat data is very cpu intensive. For that reason, by default, pidstat analysis is limited to a maximum of 4 hours of data with the number of active processes being below 500. Unless both of these conditions are met the pidstat data will not be analyzed. To bypass this behavior, you can use the -YES_PIDSTAT flag. Using this flag will analyze all the pidstat files regardless of how many files or how many active processes are on the system. An example of forcing all pidstat files to be analyzed :
Generating a Dashboard Generating a responsive web page dashboard is a useful feature of oswbba. The dashboard allows for a view into the different subsystems (cpu, memory, i/o, network and also nfs (Linux only). Any problems can be quickly identified and displayed on the dashboard. The analysis based text report is integrated with the dashboard so both textual data and graphics can be accessed inside the same browser window.
An Example Dashboard Sample Charts https://mosemp.us.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=206049425975944&parent=DOCUMENT&sourceId=301137.1&id=461053.1&_afrWindowMode=0&_adf.ctrl-state=baoj3tz0s_167 Known Issues Because oswbba builds graphs based on the Unix operating system date function, the time stamp must be in Standard English LANG format. The time stamp is formatted automatically by default (setting the parameter oswgCompliance = 1) in the OSWatcher.sh file. REFERENCESNOTE:461054.1 - OSW System Profile - Sample |
![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]()
![]()
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

Didn't find what you are looking for?
Ask in Community...
|

OSWG_CpuSystem.gif
(42.39 KB)
OSWG_MemoryFree.gif
(22.18 KB)
r55y4
(273.32 KB)
|
|
- Oracle Database Products > Oracle Database Suite > Oracle Database > Oracle Database - Personal Edition > RDBMS > Database Level Performance Issues (not SQL Tuning)
- Oracle Database Products > Oracle Database Suite > Oracle Database > Oracle Database - Standard Edition > RDBMS > Database Level Performance Issues (not SQL Tuning)
- Middleware > Application Servers > Weblogic Server > Oracle WebLogic Server > WLS-Config (non-component)
- Oracle Cloud > Oracle Platform Cloud > Oracle Database Cloud Service > Oracle Database Cloud Schema Service
- Oracle Cloud > Oracle Infrastructure Cloud > Oracle Cloud at Customer > Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine)
- Oracle Cloud > Oracle Platform Cloud > Oracle Database Cloud Exadata Service > Oracle Database Cloud Exadata Service
- Oracle Cloud > Oracle Platform Cloud > Oracle Database Cloud Service > Oracle Database Exadata Express Cloud Service
- Oracle Cloud > Oracle Platform Cloud > Oracle Database Cloud Service > Oracle Database Cloud Service
- Oracle Cloud > Oracle Platform Cloud > Oracle Database Backup Service > Oracle Database Backup Service
- Sun Microsystems > Specialized Systems > Middleware Systems > Exalogic Elastic Cloud X3-2 Hardware > SWITCH > CONFIGURATION
- Oracle Database Products > Oracle Database Suite > Oracle Database > Oracle Database - Enterprise Edition > RDBMS > Database Level Performance Issues (not SQL Tuning)
- Oracle Cloud > Oracle Platform Cloud > Oracle Cloud Infrastructure - Database Service > Oracle Cloud Infrastructure - Database Service
|
[转帖]THE OSWATCHER ANALYZER USER'S GUIDE的更多相关文章
- Linux监控工具介绍系列——OSWatcher Black Box
OSWatcher Balck Box简介 OSWatcher Black Box (oswbb)是Oracle开发.提供的一个小巧,但是实用.强大的系统工具,它可以用来抓取操作系统的性能指标,用 ...
- OSWatcher Black Box
Linux监控工具介绍系列--OSWatcher Black Box OSWatcher Balck Box简介 OSWatcher Black Box (oswbb)是Oracle开发.提供的一个小 ...
- 安装使用Oracle OSWbb/OSWbba工具
OSWbb是收集数据,OSWbba 是分析数据,在OSWbb4.0以后,OSWbba已经绑定在OSWbb内. 1.创建目录,上传/解压安装包 [oracle@std ~]$ mkdir oswbb [ ...
- oracle_hc.sql
select event,count(1) from gv$session group by event order by 2;exec dbms_workload_repository.create ...
- 如何在 arm 官网上找到合适的手册
http://infocenter.arm.com/help/advanced/help.jsp 在这里输入合适的版号即可 这样就可以不用去 CSDN 了 100000_0000_00_EN - AR ...
- 竞态条件 race condition data race
竞态条件 race condition Race condition - Wikipedia https://en.wikipedia.org/wiki/Race_condition A race c ...
- [转帖]Programmer’s guide to the big tech companies 💻
Programmer’s guide to the big tech companies
- [转帖]Intro Guide to Dockerfile Best Practices
Intro Guide to Dockerfile Best Practices By Tibor Vass July 02 2019 https://blog.docker.com/2019/ ...
- MAT(Memory Analyzer Tool)工具入门介绍(转)
1.MAT是什么? MAT(Memory Analyzer Tool),一个基于Eclipse的内存分析工具,是一个快速.功能丰富的JAVA heap分析工具,它可以帮助我们查找内存泄漏和减少内存消耗 ...
- P6 EPPM Manual Installation Guide (Oracle Database)
P6 EPPM Manual Installation Guide (Oracle Database) P6 EPPM Manual Installation Guide (Oracle Databa ...
随机推荐
- 手动实现BERT
本文重点介绍了如何从零训练一个BERT模型的过程,包括整体上BERT模型架构.数据集如何做预处理.MASK替换策略.训练模型和保存.加载模型和测试等. 一.BERT架构 BERT设计初衷是作为 ...
- 基于Atlas 200 DK的原版YOLOv3(基于Darknet-53)实现(Python版本)
[摘要]本文将为大家带来使用Atlas 200 DK的原版YOLOv3(基于Darknet-53)实现的展示. 前言 YOLOv3可以算作是经典网络了,较好实现了速度和精度的Trade off,成为和 ...
- GaussDB技术解读系列之SQL Audit,面向应用开发的SQL审核工具
本文分享自华为云社区<GaussDB技术解读系列之SQL Audit,面向应用开发的SQL审核工具>,作者:华为云数据库和应用迁移专家. 前言 我们先从一个SQL语句说起(以某传统 ...
- 华为云GaussDB支撑华为MetaERP系统全面替换
摘要:目前MetaERP已经覆盖了华为公司100%的业务场景和80%的业务量. 本文分享自华为云社区<强渡大渡河!华为云GaussDB支撑华为MetaERP系统全面替换>,作者: 华为云头 ...
- 不同数据库模式下DATE类型的行为解析
摘要:本文章主要介绍了GaussDB(DWS)数据类型中的DATE类型在不同数据库模式下且在不同应用场景下的行为表现及对比. 本文分享自华为云社区<GaussDB(DWS)数据类型之DATE类型 ...
- 看FusionInsight Spark如何支持JDBCServer的多实例特性
摘要:采用多主实例模式的HA方案,不仅可以规避主备切换服务中断的问题,实现服务不中断或少中断,还可以通过横向扩展集群来提高并发能力. 本文分享自华为云社区<FusionInsight Spark ...
- 再谈BOM和DOM(3):DOM节点操作-元素样式修改及DOM内容增删改查
操作节点,先得选择节点,就得知道节点选择器与DOM节点查找 DOM节点选择器 W3C提供了比较方便的定位节点的方法和属性 getElementById() 一个参数:元素标签的ID getElemen ...
- 火山引擎DataLeap的Data Catalog系统公有云实践 (上)
更多技术交流.求职机会,欢迎关注字节跳动数据平台微信公众号,回复[1]进入官方交流群 前言 Data Catalog 通过汇总技术和业务元数据,解决大数据生产者组织梳理数据.数据消费者找数和理解数的业 ...
- 火山引擎 VeDI 推出这款产品 助力企业实现以“人”为中心的数据洞察
更多技术交流.求职机会,欢迎关注字节跳动数据平台微信公众号,回复[1]进入官方交流群 CDP(Customer Data Platform,客户数据平台)市场将迎来新一轮的高速增长. 国际数据公司(以 ...
- Solon 能打出 war 包放到 tomcat 下运行吗?
Solon 是一个强调自启动的框架,原则上是不推荐 war 容器运行的,但总会有些甲方有硬性规定,或者旧环境不能变. 1.操作指南: 在普通项目增加几项内容即可打 war 包(仍可打 jar 包): ...


