收集 .NET CSM Apps/# of Exceptions/sec 性能计数器
此规则从应用程序的 .NET CSM Apps/# of Exceptions/sec 性能计数器中收集数据。
此计数器记录 Internet 浏览器中应用程序每秒生成的未处理 JavaScript 异常的数量。 此计数器记录的事件数取决于监视配置。 计数器值可能大于报告给 Application Diagnostics 控制台的客户端性能事件的数量,原因是该计数器值还包括通过事件限制所抑制的事件。
只有当启用了客户端应用程序性能监视时,此计数器才可用。
在发生未处理 JavaScript 异常时,计数器的值将会增加。 此类异常是由应用程序代码中的错误引起的。 要了解原因,将需要对随客户端监视警报详细信息提供的异常堆栈跟踪和数据进行分析。
Target | Microsoft.SystemCenter.Apm.CsmApplicationInstance |
Category | PerformanceCollection |
Enabled | True |
Instance Name | .NET CSM Apps |
Counter Name | # of Exceptions/sec |
Frequency | 300 |
Alert Generate | False |
Remotable | False |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
DS | DataSource | System.Performance.DataProvider | Default |
WriteToDB | WriteAction | Microsoft.SystemCenter.CollectPerformanceData | Default |
WriteToDW | WriteAction | Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData | Default |
<Rule ID="Microsoft.SystemCenter.Apm.CsmApplicationInstance.CollectExceptionEventsCount" Enabled="true" Target="Microsoft.SystemCenter.Apm.CsmApplicationInstance" ConfirmDelivery="false" Remotable="false" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Performance!System.Performance.DataProvider">
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<CounterName># of Exceptions/sec</CounterName>
<ObjectName>.NET CSM Apps</ObjectName>
<InstanceName>$Target/Property[Type="Microsoft.SystemCenter.Apm.CsmApplicationInstance"]/CounterInstance$</InstanceName>
<AllInstances>false</AllInstances>
<Frequency>300</Frequency>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>