Windows下也能够使用osw追朔系统历史性能

1、Windows系统历史性能分析困难背景

        在Linux/Unix上。要追朔历史性能,一般採用部署nmon进行性能监控採集与存储的方式实现。可是却没有在Windows上的版本号。

        Windows系统假设要分析历史性能,一直是个老大难。

     事实上。ORACLE有一个监控工具叫OSWatcher的工具,不仅能够在Linux/Unix上使用,还能够在Windows上使用。叫OS Watcher For Windows (OSWFW),攻克了Windows系统上历史性能不可查的问题。

2OSWFW支持的Windows版本号

Windows XP (x86 & x64)

Windows 7 (x86 & x64)

Windows 8 (x86 & x64)

Windows 2003 R1 & R2 (x86 and x64)

Windows 2008 R1 & R2 (x86 & x64)

Windows 2012

3OSWFW採集的指标

Cache

LogicalDisk

Memory

Netstat

PagingFile

PhysicalDisk

Process

Processor

Server_Work_queue

System

Thread

4、软件官方说明与下载地址

    參见metalink文档:433472.1     当前版本号为oswfw_2_5.1

5、英文版WindowsOSWFW部署方法

c:>unzip oswfw_2_5.1.zip

c:oswfw_2_5.1>oswatcher 60 10000

參数值说明:60:每隔60秒收集一次

                           10000:持续执行10000小时

启动后,在c:oswfw_2_5.1下会生成一个Archive文件。存放监控採集到的数据,数据以csv格式保存

6、中文版WindowsOSWFW部署方法

6.1  中文版Windows上执行oswfw问题

        oracle官方metalink文档中介绍oswfw是仅仅能执行在英文版Windows上的,但实际上,笔者经过測试,中文版Windows,通过改动windows的cmd窗体代码页,也是能够执行OSWFW的。

在启动oswatcher时。会报以下信息

Start of Operating System Watcher for Windows

此时不应有 6.1。

c:oswfw_2_5.1>

6.2 中文版Windows执行oswfw需改动窗体代码页

c:oswfw_2_5.1>chcp 437

Active code page: 437

6.3 启动oswfw

c:oswfw_2_5.1>oswatcher 60 10000

參数值说明:60:每隔60秒收集一次

                           10000:持续执行10000小时

7RAC双机环境WindowsOSWFW部署方法

7.1 RAC环境使用OSWFW特别调整

(1)将OSWPrivNet.config.template文件更名为OSWPrivNet.config

(2)在OSWPrivNet.config文件里,增加全部节点的私网IP地址,如

# Start of OSWPrivNet.config file
# Put the IP addresses for all Interconnect interfaces of all nodes on a single line
# Remove the "#" character from the address line.  The following are examples only:
192.168.1.100
192.168.1.101
# End of OSWPrivNet.config file

7.2 RAC环境启动方法

c:oswfw_2_5.1>oswatcher 60 10000 RAC

8、停止OSWFW

8.1 单节点停止OSWFW

c:oswfw_2_5.1>oswatcher stop

8.2 停止RAC中全部节点的OSWFW

c:oswfw_2_5.1>oswatcher stop curiousgeorgel


本文作者:黎俊杰(网名:踩点),从事”系统架构、操作系统、存储设备、数据库、中间件、应用程序“六个层面系统性的性能优化工作

欢迎增加 系统性能优化专业群 。共同探讨性能优化技术。群号:258187244

原文地址:https://www.cnblogs.com/yutingliuyl/p/7220899.html