“.NET CLR Memory\\% Time in GC”属性规则

Microsoft.Windows.InternetInformationServices.10.0.DotNetCLRMemoryPercentageOfTimeInGC (Rule)

\% Time in GC 是自上一次 GC 循环以来执行垃圾回收 (GC) 所用的运行时间的百分比。此计数器通常指示垃圾收集器代表应用程序收集和压缩内存所完成的工作。此计数器只在每次 GC 结束时更新,而计数器值反映上一次观测的值;它不是平均值。Nano 上不支持。已使用 Nano 的替代禁用。

Knowledge Base article:

摘要

此规则收集 GC 性能计数器中的 .NET CLR Memory\% Time。Nano 上不支持。已使用 Nano 的替代禁用。

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.10.0.WebServer
CategoryPerformanceCollection
EnabledFalse
Instance Name.NET CLR Memory
Counter Name\% Time in GC
Frequency300
Alert GenerateFalse
RemotableTrue

Member Modules:

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

Source Code:

<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>