系统处理器队列长度 Windows Server 2012 R2

Microsoft.Windows.Server.2012.R2.OperatingSystem.SystemProcessorQueueLength.Collection (Rule)

性能计数器 System\Processor Queue Length 的收集规则。

Knowledge Base article:

摘要

此规则收集 System\ Processor Queue Length 性能计数器的性能数据。

System\Processor Queue Length 性能计数器显示处理器队列中的线程数。 与磁盘计数器不同的是,此计数器只显示就绪线程,不显示正在运行的线程。 即使在有多个处理器的计算机上,处理器时间也只有单个队列。 因此,如果计算机具有多个处理器,需要用此值除以处理工作流的处理器数。 长时间每处理器少于 10 个线程的处理器队列不管工作负载如何通常都是可接受的。

Element properties:

TargetMicrosoft.Windows.Server.2012.R2.OperatingSystem
CategoryPerformanceCollection
EnabledTrue
Instance NameSystem
Counter NameProcessor Queue Length
Frequency300
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
PerformanceDS DataSource System.Performance.OptimizedDataProvider Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Microsoft.Windows.Server.2012.R2.OperatingSystem.SystemProcessorQueueLength.Collection" Enabled="true" Target="Server2012R2!Microsoft.Windows.Server.2012.R2.OperatingSystem">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="PerformanceDS" TypeID="SystemPerf!System.Performance.OptimizedDataProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<CounterName>Processor Queue Length</CounterName>
<ObjectName>System</ObjectName>
<InstanceName/>
<AllInstances>false</AllInstances>
<Frequency>300</Frequency>
<Tolerance>10</Tolerance>
<ToleranceType>Absolute</ToleranceType>
<MaximumSampleSeparation>12</MaximumSampleSeparation>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>