Eccezioni CLR .NET - Regola delle prestazioni Eccezioni generate al secondo

Microsoft.Windows.InternetInformationServices.6.2.WebServer.NumberOfDotNetExceptionsThrownPerSecond (Rule)

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.

Knowledge Base article:

Riepilogo

Questa regola raccoglie i dati del contatore delle prestazioni per Eccezioni .NET - Eccezioni generate al secondo

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.6.2.WebServer
CategoryPerformanceCollection
EnabledFalse
Instance Name.NET CLR Exceptions
Counter Name# of Exceps Thrown / sec
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.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>