效能計數器 System\Processor Queue Length 的收集規則。
此規則會收集 System\ Processor Queue Length 效能計數器的效能資料。
System\Processor Queue Length 效能計數器會顯示處理器佇列中的執行緒數量。不同於磁碟計數器,此計數器會計數並顯示準備就緒的執行緒,而非顯示執行中的執行緒。處理器時間僅有單一佇列,即使是具有多處理器的電腦也是一樣。因此,如果電腦具有多個處理器,便需要將此值除以處理工作負載的處理器個數。每個處理器佇列持續少於 10 個執行緒通常可以接受,視工作負載而定。
Target | Microsoft.Windows.Server.2003.OperatingSystem |
Category | PerformanceCollection |
Enabled | True |
Instance Name | System |
Counter Name | Processor Queue Length |
Frequency | 300 |
Alert Generate | False |
Remotable | True |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
PerformanceDS | DataSource | System.Performance.OptimizedDataProvider | Default |
WriteToDB | WriteAction | Microsoft.SystemCenter.CollectPerformanceData | Default |
WriteToDW | WriteAction | Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData | Default |
<Rule ID="Microsoft.Windows.Server.2003.OperatingSystem.SystemProcessorQueueLength.Collection" Enabled="true" Target="Microsoft.Windows.Server.2003.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>