Performance Monitor简单了解

推荐教程:
https://www.cnblogs.com/ljhdo/archive/2016/09/22/5061561.html
https://www.aliyun.com/jiaocheng/920076.html

监控进程,线程资源使用情况,可直观图实时显示,也可将结果进行记录。

简介

Performance Monitor是Windows内置的一个可视化监控工具,能够在OS级别上实时记录系统资源的使用情况,通过收集和存储日志数据,在SQL Server发生异常时,能够还原系统当时的资源的使用情况,是对SQL Server进行Troubleshooting的首选工具。Performance Monitor使用Performance Counter来追踪系统的活动状态的测量值,取样间隔默认是15s,即,Performance Monitor每隔15s,记录Performance Counter的当前值。

Performance Monitor主要有两个组件:Viewer和Data Collector,分别用于查看和记录Performance Counter的测量值,开启Performance Monitor对Server的影响很微小,建议开启,多收集一些性能数据。


Performance Monitor简单了解

在计数器里,可以看到我们可以添加很多选项,当不清楚某个计数器的作用时,可以勾选显示描述,通过描述来了解每个计数器的作用。


Performance Monitor简单了解

简单使用实例,实时记录,不保存log日志:

自己电脑的内核数量, 8:
记录处理的C1性能:
% C1 Time 是处理器处于 C1 低能量空闲状态下的时间百分比。% C1 Time 是处理器空闲总时间的一个子集。C1 低能量空闲状态允许处理器保持其整个环境并快速返回运行状态。不是所有的系统都支持 % C1 状态。


Performance Monitor简单了解

Performance Monitor简单了解

常用指标:

系统级别指标:Processor Time(另加各个核的记录)、Pages/sec、Available Bytes、% Disk Time、Avg.Disk Queue Length、Total/sec 、Disk Read Time、Disk Write Time、Time in GC、Large Object Heap Size

进程级别指标:%processor time、IO Read bytes/sec、IO Write bytes/sec、Thread Count、Time in GC、Large Object Heap Size、Gen 1 collections、 Gen 2 collections、 Gen 0 collections、 bytes in all heaps

Performance Monitor简单了解