Questo contatore visualizza il numero di eccezioni generate al secondo Vengono prese in considerazione sia le eccezioni .NET, sia le eccezioni non gestite convertite in eccezioni .NET (ad esempio, un'eccezione dovuta a un riferimento a un puntatore nullo nel codice non gestito, nel codice gestito viene nuovamente generata come .NET System.NullReferenceException).Vengono conteggiate sia le eccezioni gestite, sia quelle non gestite. Le eccezioni dovrebbero presentarsi di rado, poiché non fanno parte del flusso normale del programma. Il contatore è un indicatore dei potenziali problemi di prestazioni dovuti a una frequenza elevata delle eccezioni (superiore alle 100 eccezioni al secondo). Il contatore non rappresenta una media rispetto al tempo, ma indica piuttosto la differenza fra i valori degli ultimi due campioni divisa per la durata dell'intervallo di campionamento.
Questa regola raccoglie i dati del contatore delle prestazioni per Eccezioni .NET - Eccezioni generate al secondo
Target | Microsoft.Windows.InternetInformationServices.6.2.WebServer |
Category | PerformanceCollection |
Enabled | False |
Instance Name | .NET CLR Exceptions |
Counter Name | # of Exceps Thrown / sec |
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.WebServer.NumberOfDotNetExceptionsThrownPerSecond" 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># of Exceps Thrown / sec</CounterName>
<ObjectName>.NET CLR Exceptions</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>