GC 時間百分比是在前次的 GC 循環後花費在執行記憶體回收 (GC) 的經過時間百分比。此計數器通常是記憶體回收行程代表應用程式執行收集和壓縮記憶體的工作指示器。此計數器只會在每次 GC 結束後更新,而且計數器的值反映的是最後觀察到的值,而不是平均值。
此規則會收集「NET CLR 記憶體\GC 時間百分比」效能計數器
Target | Microsoft.Windows.InternetInformationServices.6.2.WebServer |
Category | PerformanceCollection |
Enabled | False |
Instance Name | .NET CLR Memory |
Counter Name | \% Time in GC |
Frequency | 300 |
Alert Generate | False |
Remotable | True |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
DS | DataSource | System.Performance.OptimizedDataProvider | Default |
WriteToDB | WriteAction | Microsoft.SystemCenter.CollectPerformanceData | Default |
WriteToDW | WriteAction | Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData | Default |
<Rule ID="Microsoft.Windows.InternetInformationServices.6.2.DotNetCLRMemoryPercentageOfTimeInGC" Enabled="false" Target="Microsoft.Windows.InternetInformationServices.6.2.WebServer" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="SystemPerf!System.Performance.OptimizedDataProvider">
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<CounterName>% Time in GC</CounterName>
<ObjectName>.NET CLR Memory</ObjectName>
<InstanceName>_Global_</InstanceName>
<AllInstances>false</AllInstances>
<Frequency>300</Frequency>
<Tolerance>5</Tolerance>
<ToleranceType>Percentage</ToleranceType>
<MaximumSampleSeparation>4</MaximumSampleSeparation>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>