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

来源:互联网 发布:淘宝行业关键词转化率 编辑:程序博客网 时间:2024/04/30 11:41

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

0 0
原创粉丝点击