Collecting crash snapshot via ProcDump - mitikov/KeepSitecoreSimple GitHub Wiki
Agenda
.NET Application crashes randomly - need to figure out why.
Symptoms
Unhandled exception popup:
Hard restarts (process didn't receive a restart notice from hosting environment) are reported in Sitecore Logs:
Action plan
Setup automatic snapshot collection
ProcDump is a tool to collect full memory snapshot once unhandled exception occurs in the application process.
All it needs is:
- 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:
Wait till memory dump is collected
The snapshot would be collected to the same folder from which ProcDump had been executed:
Open the snapshot and locate the code that had thrown an exception
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: