收集 .NET CSM Statistic/例外狀況數/秒效能計數器
此規則會收集網頁的 .NET CSM Statistic/# of Exceptions/sec 效能計數器。
此計數器會顯示網際網路瀏覽器中每秒由網頁擲回的未處理 JavaScript 例外狀況數目。 此計數器所記錄的事件數目取決於監視設定。 此計數器值可能會大於此頁面回報給 Application Diagnostics 主控台的用戶端效能事件數目,因為計數器值還包含了事件節流功能所隱藏的事件。
此效能計數器只有在用戶端應用程式效能監視已啟用,且已針對網頁設定用戶端交易時可供網頁使用。
若要為新應用程式的網頁設定用戶端交易:
開啟 [.NET 應用程式效能監視] 範本精靈。
當用戶端監視啟用時,請按一下 [自訂]。
在 [交易] 區段中,按一下 [新增]。
為您要監視的頁面指定用戶端交易設定。
若要為已監視的應用程式網頁設定用戶端交易:
在 .NET 應用程式效能監視範本中,開啟您的 Web 應用程式群組。
按一下 [用戶端監視] 索引標籤。
選取您要變更的應用程式,然後按一下 [自訂]。
在 [交易] 區段中,按一下 [新增]。
為您要監視的頁面指定用戶端交易設定。
Target | Microsoft.SystemCenter.Apm.CsmTransaction |
Category | PerformanceCollection |
Enabled | True |
Instance Name | .NET CSM Statistic |
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.CsmTransaction.CollectExceptionEventsCount" Enabled="true" Target="Microsoft.SystemCenter.Apm.CsmTransaction" ConfirmDelivery="false" Remotable="false" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Performance!System.Performance.DataProvider">
<ComputerName>$Target/Host/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<CounterName># of Exceptions/sec</CounterName>
<ObjectName>.NET CSM Statistic</ObjectName>
<InstanceName>$Target/Property[Type="Microsoft.SystemCenter.Apm.CsmTransaction"]/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>