系統處理器佇列長度 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>