This page describes monitoring for CLR crash events. The .NET Machine Agent monitors Windows for non-graceful CLR shutdowns on IIS, Windows services, and standalone applications. The agent raises CLR crash events in the Controller when such crashes occur. Use a policy to alert responsible parties when the agent reports a CLR crash.
Monitor for CLR Crash Events
Create a policy that sends notifications when a CLR crash event occurs.
- Verify your Email / SMS Configuration. See Enable an Email Server.
- Create a notification action configured to alert the parties who respond to CLR crashes. See Notification Actions.
- Create a policy to trigger on CLR Crash under Other Events on the Create Policy panel. For the action, choose the notification action you created in step 2. See Configure Policies.
After you create the policy, the Controller sends a notification when the .NET Machine Agent raises CLR crash events.
Analyze and Respond to CLR Crashes
When a CLR crashes, the .NET Machine Agent raises an event in the Controller. The events page on the application dashboard displays the number of server crash events, including CLR crashes, during the selected time range.
- Click the Server Crashes link in the application dashboard to display a list of all server crash events during the selected time range.
Optionally filter on the CLR Crash event type.
Entries for individual CLR crashes display information about the crash event, including the process ID and the Windows event log ID.
After a CLR crash, IIS automatically tries to restart the CLR, so one issue frequently causes multiple CLR crash events.
- Double-click a CLR Crash type event to display more information in the CLR Crash panel:
Disable CLR Crash Event Reporting
The .NET Machine Agent enables CLR crash event reporting by default. To disable it:
- Edit the agent
config.xml
as an administrator. See Where to Configure App Agent Properties. - Set
enabled="false"
for the CLR Crash Reporting element. See CLR Crash Reporting Element. - Restart the AppDynamics.Agent.Coordinator service.
Crash Events Monitored by the .NET Machine Agent
The .NET Machine Agent listens on these Windows event logs for crash events:
- Application Log
- System Log
The agent listens for events logged at event-level Warning
and higher on these sources:
- Application Error
- .NET Runtime
- WAS (Windows Process Activation Service)
The agent listens for events logged at event-level Information
and higher on this source:
The agent reports CLR crashes as events to the Controller:
- All w3wp process crashes
- Instrumented Windows service crashes
- Instrumented standalone application crashes
The Controller treats all events as Warning
severity, which is not directly related to the Windows event level.