Zbieraj dane licznika Aplikacje .NET CSM/średni czas wykonania (ms)

Microsoft.SystemCenter.Apm.CsmApplicationInstance.AvgRequestTimeMonitor (UnitMonitor)

Knowledge Base article:

Podsumowanie

Stan wystąpienia staje się nieprawidłowy, jeśli średni czas żądania dla ładowania strony sieci Web w przeglądarce i w ustalonym okresie przekracza próg monitora.

Przyczyny

Alerty wydajności aplikacji są generowane, gdy średni czas trwania zdarzeń wydajności klienta przekroczy skonfigurowany próg monitora.

Zbyt długie czasy żądania sieci mogą wynikać z niezrównoważonej sieci.

Długie przetwarzanie na serwerze może wynikać ze skomplikowanego lub niewydajnego kodu źródłowego.

Problemy z wydajnością dotyczące czasu ładowania strony mogą wystąpić z powodu dużego rozmiaru strony lub dużej liczby skryptów Java.

Problemy z wydajnością związane z długim czasem Window.OnLoad mogą być wynikiem długiego wykonywania programów obsługi JavaScript.

Rozwiązania

Zwykle długie ładowanie strony może wynikać z niezrównoważonej sieci, długiego czasu przetwarzania na serwerze, długiego czasu ładowania strony lub czasu Window.OnLoad.

Element properties:

TargetMicrosoft.SystemCenter.Apm.CsmApplicationInstance
Parent MonitorSystem.Health.PerformanceState
CategoryCustom
EnabledFalse
Instance Name.NET CSM Apps
Counter NameAverage page request execution time
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeSystem.Performance.ConsecutiveSamplesThreshold
RemotableFalse
AccessibilityPublic
Alert Message
Próg licznika Aplikacje .NET CSM/średni czas żądania przekroczył próg.
Licznik wydajności Aplikacje .NET CSM/średni czas wykonania przekroczył skonfigurowany próg wynoszący {0} ms. Wartość licznika wynosiła {1} ms.
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.Apm.CsmApplicationInstance.AvgRequestTimeMonitor" Accessibility="Public" Enabled="false" Target="Microsoft.SystemCenter.Apm.CsmApplicationInstance" ParentMonitorID="Health!System.Health.PerformanceState" Remotable="false" Priority="Normal" TypeID="Performance!System.Performance.ConsecutiveSamplesThreshold" ConfirmDelivery="false">
<Category>Custom</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.Apm.CsmApplicationInstance.AvgRequestTimeMonitor.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="AL!Microsoft.SystemCenter.Apm.ApplicationInstanceBase"]/AvgRequestTimeMonitorThreshold$</AlertParameter1>
<AlertParameter2>$Data/Context/SampleValue$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Success" MonitorTypeStateID="ConditionFalse" HealthState="Success"/>
<OperationalState ID="Warning" MonitorTypeStateID="ConditionTrue" HealthState="Warning"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<CounterName>Average page request execution time</CounterName>
<ObjectName>.NET CSM Apps</ObjectName>
<InstanceName>$Target/Property[Type="Microsoft.SystemCenter.Apm.CsmApplicationInstance"]/CounterInstance$</InstanceName>
<AllInstances>false</AllInstances>
<Frequency>$Target/Property[Type="AL!Microsoft.SystemCenter.Apm.ApplicationInstanceBase"]/AvgRequestTimeMonitorInterval$</Frequency>
<Threshold>$Target/Property[Type="AL!Microsoft.SystemCenter.Apm.ApplicationInstanceBase"]/AvgRequestTimeMonitorThreshold$</Threshold>
<Direction>greater</Direction>
<NumSamples>3</NumSamples>
</Configuration>
</UnitMonitor>