-
Notifications
You must be signed in to change notification settings - Fork 2
Collecting crash snapshot via ProcDump
.NET Application crashes randomly - need to figure out why.
Unhandled exception popup:
Hard restarts (process didn't receive a restart notice from hosting environment) are reported in Sitecore Logs:
ProcDump is a tool to collect full memory snapshot once unhandled exception occurs in the application process.
- To be launched with administrator privileges
- To know which process to monitor:
- To know conditions when to collect snapshots
-e
param specifies an unhandled exception triggers capturing
-ma
param specifies full memory dump is requested instead of mini
9460
is the process ID to monitor. We can also specify process name.
Once all set up, the monitoring is active:
The snapshot would be collected to the same folder from which ProcDump had been executed:
WinDBG notifies you about an exception inside:
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
You'll need to load .NET Framework files from target machine to execute !DumpStack
command.
It will print the code that has thrown the exception: