\% Time in GC 是自上一次 GC 循环以来执行垃圾回收 (GC) 所用的运行时间的百分比。此计数器通常指示垃圾收集器代表应用程序收集和压缩内存所完成的工作。此计数器只在每次 GC 结束时更新,而计数器值反映上一次观测的值;它不是平均值。Nano 上不支持。已使用 Nano 的替代禁用。
此规则收集 GC 性能计数器中的 .NET CLR Memory\% Time。Nano 上不支持。已使用 Nano 的替代禁用。
Target | Microsoft.Windows.InternetInformationServices.10.0.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.10.0.DotNetCLRMemoryPercentageOfTimeInGC" Enabled="false" Target="Microsoft.Windows.InternetInformationServices.10.0.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>