Memory dumps at process termination, with optional first-chance dump

Published Jul 23 2021 08:32 AM 1,108 Views
Microsoft

The following procedure guides on how to properly collect memory dumps to study exceptions leading to a process crash. This post complements my article about how exceptions are handled and how to collect memory dumps to study them

 

Although both ProcDump and DebugDiag can collect memory dumps for the monitored process under certain conditions - such as when specific exceptions occur – in this scenario, only DebugDiag is flexible enough. DebugDiag automates some steps, adds more explicit context, and includes automated memory dump analysis capabilities too.

 

The steps below have limited applicability – when we know for sure that a certain first-chance exception shortly precedes and causes a crash. All second-chance (crash causing) exceptions start as first-chance ones; in general, it is enough to look at the exception in its final stage. But there are edge cases where we need to study both the first-chance context and the crashing one.

 

Using the UI tool DebugDiag, Debug Diagnostics Collection

 

DebugDiag requires installation, but it is able to determine itself the whatever process instance - PID - happens to execute for an application pool at some point in time; even when that process may occasionally crash, hence restart with different PID.

 

 

 

#1.

Download Debug Diagnostic and install it on IIS machine:
https://www.microsoft.com/en-us/download/details.aspx?id=49924 v2.2 (if 32-bit system)

https://www.microsoft.com/en-us/download/details.aspx?id=103453 v2.3.2 (only supports 64-bit)

 
 

 

#2.

Open Debug Diagnostic Collection.
If a wizard does not show up, click Add Rule.

 

 

 

#3.

Choose Crash and click next.
  

ViorelAlexandru_0-1625663305626.png

 

  

  

#4.

Choose A specific process and next. Or
Choose A specific IIS web application pool and next.

 

ViorelAlexandru_1-1625663305639.png

 

ViorelAlexandru_2-1625663305653.png

  

 

  

#5.

Identify and select the exact process that we’re interested in. Or…
Choose the Application Pool of which w3wp.exe worker processes are crashing.

 

ViorelAlexandru_3-1625663305663.png

 

ViorelAlexandru_4-1625663305669.png

 

 

 

#6.

Lower the Maximum number of user-dumps created by the rule to 3.

 

ViorelAlexandru_5-1625663305674.png

 

 

 

#7.

Click on the Exceptions button to also collect a first-chance exception for that Access Violation.

 

ViorelAlexandru_6-1625663305679.png

 

 

 

#8.

Click on the Add Exception button. In the Configure Exception window:

In most cases if not all, the first-chance exception is a CRL Exception; but since all CLR exceptions will have native code 

E0434352, be sure to filter out by full exception name or a string in the exception message.

Action Type = Full Userdump

Action Limit = 1

 

ViorelAlexandru_7-1625663305688.png

 

ViorelAlexandru_0-1625669587064.png

 

 

 

#9.

Click OK in the Configure Exception window, then
Save & Close in the First Chance Exception Configuration window.

 

ViorelAlexandru_8-1625663305696.png

 

 

 

#10.

Click Next and configure the file location where the dump file(s) will be generated.
Please make sure that there is enough disk space on the drive where dumps are collected. Each process dump will take space in the disk approximately the same size the process uses in memory (column Commit Size in Task Manager). For example, if the w3wp.exe process memory usage is ~2 GB, then the size of each dump file will be around 2 GB.
Please do not choose a disk in network/UNC; choose a local disk.

 

ViorelAlexandru_9-1625663305703.png

 

 

 

#11.

Click Next and Finish by selecting to Activate the rule now.

 

ViorelAlexandru_10-1625663305711.png

 

 

 

#12.

When the same event is logged, a dump file (or files) should be created in the user-dump location selected above.

Monitoring logs are also generated: Debug Diag reports all exceptions (including the first-chance ones) that occurred in the process.

 

  • Look for a file like below, in the folder configured for the rule (where dumps would be saved):
    <processName>__<appPool>__PID__<PID>__Date__MM_DD_YYYY__Time_hh_mm_ss<AM|PM>__<ID>__Log.txt
  • Example:
    w3wp__SCEP__PID__10032__Date__07_20_2021__Time_11_03_39AM__492__Log.txt

 

Please archive in a ZIP and prepare to hand over to the support engineer; upload in a secure file transfer space.

 

 

 

Remember my article about how exceptions are handled and how to collect memory dumps to study them. We can double check if a crash occurred or not: read about w3wp.exe crashes.

 

 

 

Aside: Just in case you are wondering what I use to capture screenshots for illustrating my articles, check out this little ShareX application in Windows Store.

 

%3CLINGO-SUB%20id%3D%22lingo-sub-2523138%22%20slang%3D%22en-US%22%3EMemory%20dumps%20at%20process%20termination%2C%20with%20optional%20first-chance%20dump%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2523138%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20following%20procedure%20guides%20on%20how%20to%20properly%20collect%20memory%20dumps%20to%20study%20exceptions%20leading%20to%20a%20process%20crash.%20This%20post%20complements%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fiis-support-blog%2Fabout-exceptions-and-capturing-them-with-dumps%2Fba-p%2F2234600%22%20target%3D%22_blank%22%3Emy%20article%20about%20how%20exceptions%20are%20handled%20and%20how%20to%20collect%20memory%20dumps%20to%20study%20them%3C%2FA%3E.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAlthough%20both%20ProcDump%20and%20DebugDiag%20can%20collect%20memory%20dumps%20for%20the%20monitored%20process%20under%20certain%20conditions%20-%20such%20as%20when%20specific%20exceptions%20occur%20%E2%80%93%20in%20this%20scenario%2C%20only%20DebugDiag%20is%20flexible%20enough.%20DebugDiag%20automates%20some%20steps%2C%20adds%20more%20explicit%20context%2C%20and%20includes%20automated%20memory%20dump%20analysis%20capabilities%20too.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20steps%20below%20have%20limited%20applicability%20%E2%80%93%20when%20we%20know%20for%20sure%20that%20a%20certain%20first-chance%20exception%20shortly%20precedes%20and%20causes%20a%20crash.%20All%20second-chance%20(crash%20causing)%20exceptions%20start%20as%20first-chance%20ones%3B%20in%20general%2C%20it%20is%20enough%20to%20look%20at%20the%20exception%20in%20its%20final%20stage.%20But%20there%20are%20edge%20cases%20where%20we%20need%20to%20study%20both%20the%20first-chance%20context%20and%20the%20crashing%20one.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--412508622%22%20id%3D%22toc-hId--407055729%22%3EUsing%20the%20UI%20tool%20DebugDiag%2C%20Debug%20Diagnostics%20Collection%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDebugDiag%20requires%20installation%2C%20but%20it%20is%20able%20to%20determine%20itself%20the%20whatever%20process%20instance%20-%20PID%20-%20happens%20to%20execute%20for%20an%20application%20pool%20at%20some%20point%20in%20time%3B%20even%20when%20that%20process%20may%20occasionally%20crash%2C%20hence%20restart%20with%20different%20PID.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-278052852%22%20id%3D%22toc-hId-283505745%22%3E%3CEM%3E%231.%3C%2FEM%3E%3C%2FH3%3E%0A%3CP%3EDownload%20Debug%20Diagnostic%20and%20install%20it%20on%20IIS%20machine%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fdownload%2Fdetails.aspx%3Fid%3D49924%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fdownload%2Fdetails.aspx%3Fid%3D49924%3C%2FA%3E%26nbsp%3Bv2.2%20(if%2032-bit%20system)%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fdownload%2Fdetails.aspx%3Fid%3D103453%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fdownload%2Fdetails.aspx%3Fid%3D103453%3C%2FA%3E%20v2.3.2%20(only%20supports%2064-bit)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3CBR%20%2F%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1529401611%22%20id%3D%22toc-hId--1523948718%22%3E%3CEM%3E%232.%3C%2FEM%3E%3C%2FH3%3E%0A%3CP%3EOpen%20%3CSTRONG%3E%3CEM%3EDebug%20Diagnostic%20Collection%3C%2FEM%3E%3C%2FSTRONG%3E.%3CBR%20%2F%3EIf%20a%20wizard%20does%20not%20show%20up%2C%20click%20%3CSTRONG%3E%3CEM%3EAdd%20Rule%3C%2FEM%3E%3C%2FSTRONG%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-958111222%22%20id%3D%22toc-hId-963564115%22%3E%3CEM%3E%233.%3C%2FEM%3E%3C%2FH3%3E%0A%3CP%3EChoose%20%3CSTRONG%3E%3CEM%3ECrash%3C%2FEM%3E%3C%2FSTRONG%3E%20and%20click%20next.%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22ViorelAlexandru_0-1625663305626.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294011iFA3E050F72E3E105%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22ViorelAlexandru_0-1625663305626.png%22%20alt%3D%22ViorelAlexandru_0-1625663305626.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%26nbsp%3B%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%26nbsp%3B%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--849343241%22%20id%3D%22toc-hId--843890348%22%3E%3CEM%3E%234.%3C%2FEM%3E%3C%2FH3%3E%0A%3CP%3EChoose%20%3CSTRONG%3E%3CEM%3EA%20specific%20process%3C%2FEM%3E%3C%2FSTRONG%3E%20and%20next.%20Or%3CBR%20%2F%3EChoose%20%3CSTRONG%3E%3CEM%3EA%20specific%20IIS%20web%20application%20pool%3C%2FEM%3E%3C%2FSTRONG%3E%20and%20next.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22ViorelAlexandru_1-1625663305639.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294013iA68B5B7F65739BD7%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22ViorelAlexandru_1-1625663305639.png%22%20alt%3D%22ViorelAlexandru_1-1625663305639.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22ViorelAlexandru_2-1625663305653.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294012iE4C31429C1DC1738%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22ViorelAlexandru_2-1625663305653.png%22%20alt%3D%22ViorelAlexandru_2-1625663305653.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1638169592%22%20id%3D%22toc-hId-1643622485%22%3E%3CEM%3E%235.%3C%2FEM%3E%3C%2FH3%3E%0A%3CP%3EIdentify%20and%20select%20the%20exact%20process%20that%20we%E2%80%99re%20interested%20in.%20Or%E2%80%A6%3CBR%20%2F%3EChoose%20the%20Application%20Pool%20of%20which%20w3wp.exe%20worker%20processes%20are%20crashing.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22ViorelAlexandru_3-1625663305663.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294014i11044EB1B7104625%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22ViorelAlexandru_3-1625663305663.png%22%20alt%3D%22ViorelAlexandru_3-1625663305663.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22ViorelAlexandru_4-1625663305669.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294015iC15FC541CE0A0C42%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22ViorelAlexandru_4-1625663305669.png%22%20alt%3D%22ViorelAlexandru_4-1625663305669.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--169284871%22%20id%3D%22toc-hId--163831978%22%3E%3CEM%3E%236.%3C%2FEM%3E%3C%2FH3%3E%0A%3CP%3ELower%20the%20%3CSTRONG%3E%3CEM%3EMaximum%20number%20of%20user-dumps%20created%20by%20the%20rule%3C%2FEM%3E%3C%2FSTRONG%3E%20to%203.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22ViorelAlexandru_5-1625663305674.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294016i94F6DE59334F6655%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22ViorelAlexandru_5-1625663305674.png%22%20alt%3D%22ViorelAlexandru_5-1625663305674.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1976739334%22%20id%3D%22toc-hId--1971286441%22%3E%3CEM%3E%237.%3C%2FEM%3E%3C%2FH3%3E%0A%3CP%3EClick%20on%20the%20%3CSTRONG%3E%3CEM%3EExceptions%3C%2FEM%3E%3C%2FSTRONG%3E%20button%20to%20also%20collect%20a%20first-chance%20exception%20for%20that%20Access%20Violation.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22ViorelAlexandru_6-1625663305679.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294017iA889358F2CC84E57%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22ViorelAlexandru_6-1625663305679.png%22%20alt%3D%22ViorelAlexandru_6-1625663305679.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-510773499%22%20id%3D%22toc-hId-516226392%22%3E%3CEM%3E%238.%3C%2FEM%3E%3C%2FH3%3E%0A%3CP%3EClick%20on%20the%20%3CSTRONG%3E%3CEM%3EAdd%20Exception%3C%2FEM%3E%3C%2FSTRONG%3E%20button.%20In%20the%20%3CSTRONG%3E%3CEM%3EConfigure%20Exception%3C%2FEM%3E%3C%2FSTRONG%3E%20window%3A%3C%2FP%3E%0A%3CP%3EIn%20most%20cases%20if%20not%20all%2C%20the%20first-chance%20exception%20is%20a%20%3CEM%3E%3CSTRONG%3ECRL%20Exception%3C%2FSTRONG%3E%3C%2FEM%3E%3B%20but%20since%20all%20CLR%20exceptions%20will%20have%20native%20code%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3E%3CSTRONG%3EE0434352%3C%2FSTRONG%3E%3C%2FEM%3E%2C%20be%20sure%20to%20filter%20out%20by%20full%20exception%20name%20or%20a%20string%20in%20the%20exception%20message.%3C%2FP%3E%0A%3CP%3EAction%20Type%20%3D%20%3CSTRONG%3E%3CEM%3EFull%20Userdump%3C%2FEM%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EAction%20Limit%20%3D%201%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22ViorelAlexandru_7-1625663305688.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294018iEEECDE054A3C6258%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22ViorelAlexandru_7-1625663305688.png%22%20alt%3D%22ViorelAlexandru_7-1625663305688.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22ViorelAlexandru_0-1625669587064.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294038iF58B91DE8AA10D86%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22ViorelAlexandru_0-1625669587064.png%22%20alt%3D%22ViorelAlexandru_0-1625669587064.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1296680964%22%20id%3D%22toc-hId--1291228071%22%3E%3CEM%3E%239.%3C%2FEM%3E%3C%2FH3%3E%0A%3CP%3EClick%20%3CSTRONG%3E%3CEM%3EOK%3C%2FEM%3E%3C%2FSTRONG%3E%20in%20the%20%3CSTRONG%3E%3CEM%3EConfigure%20Exception%3C%2FEM%3E%3C%2FSTRONG%3E%20window%2C%20then%3CBR%20%2F%3E%3CSTRONG%3E%3CEM%3ESave%20%26amp%3B%20Close%3C%2FEM%3E%3C%2FSTRONG%3E%20in%20the%20%3CSTRONG%3E%3CEM%3EFirst%20Chance%20Exception%20Configuration%3C%2FEM%3E%3C%2FSTRONG%3E%20window.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22ViorelAlexandru_8-1625663305696.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294019i726AE29A07C86417%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22ViorelAlexandru_8-1625663305696.png%22%20alt%3D%22ViorelAlexandru_8-1625663305696.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-495668390%22%20id%3D%22toc-hId-501121283%22%3E%3CEM%3E%2310.%3C%2FEM%3E%3C%2FH3%3E%0A%3CP%3EClick%20%3CSTRONG%3E%3CEM%3ENext%3C%2FEM%3E%3C%2FSTRONG%3E%20and%20configure%20the%20file%20location%20where%20the%20dump%20file(s)%20will%20be%20generated.%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%3CEM%3EPlease%20make%20sure%20that%20there%20is%20enough%20disk%20space%20on%20the%20drive%20where%20dumps%20are%20collected.%26nbsp%3BEach%20process%20dump%20will%20take%20space%20in%20the%20disk%20approximately%20the%20same%20size%20the%20process%20uses%20in%20memory%20(column%20Commit%20Size%20in%20Task%20Manager).%26nbsp%3BFor%20example%2C%20if%20the%20w3wp.exe%20process%20memory%20usage%20is%20~2%20GB%2C%20then%20the%20size%20of%20each%20dump%20file%20will%20be%20around%202%20GB.%3C%2FEM%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20color%3D%22%23FF6600%22%3EPlease%20do%20not%20choose%20a%20disk%20in%20network%2FUNC%3B%20choose%20a%20local%20disk.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22ViorelAlexandru_9-1625663305703.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294020i71D095A4969AB331%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22ViorelAlexandru_9-1625663305703.png%22%20alt%3D%22ViorelAlexandru_9-1625663305703.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1311786073%22%20id%3D%22toc-hId--1306333180%22%3E%3CEM%3E%2311.%3C%2FEM%3E%3C%2FH3%3E%0A%3CP%3EClick%20%3CSTRONG%3E%3CEM%3ENext%3C%2FEM%3E%3C%2FSTRONG%3E%20and%20%3CSTRONG%3E%3CEM%3EFinish%3C%2FEM%3E%3C%2FSTRONG%3E%20by%20selecting%20to%20%3CSTRONG%3E%3CEM%3EActivate%20the%20rule%20now%3C%2FEM%3E%3C%2FSTRONG%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22ViorelAlexandru_10-1625663305711.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294021iD445E27DF8B0771A%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22ViorelAlexandru_10-1625663305711.png%22%20alt%3D%22ViorelAlexandru_10-1625663305711.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1175726760%22%20id%3D%22toc-hId-1181179653%22%3E%3CEM%3E%2312.%3C%2FEM%3E%3C%2FH3%3E%0A%3CP%3EWhen%20the%20same%20event%20is%20logged%2C%20a%20dump%20file%20(or%20files)%20should%20be%20created%20in%20the%20user-dump%20location%20selected%20above.%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3EMonitoring%20logs%20are%20also%20generated%3A%20Debug%20Diag%20reports%20all%20exceptions%20(including%20the%20first-chance%20ones)%20that%20occurred%20in%20the%20process.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CFONT%20size%3D%222%22%3ELook%20for%20a%20file%20like%20below%2C%20in%20the%20folder%20configured%20for%20the%20rule%20(where%20dumps%20would%20be%20saved)%3A%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%3CEM%3E%3CPROCESSNAME%3E__%3CAPPPOOL%3E__PID__%3CPID%3E__Date__MM_DD_YYYY__Time_hh_mm_ss%3CAM%3E__%3CID%3E__%3CSTRONG%3ELog.txt%3C%2FSTRONG%3E%3C%2FID%3E%3C%2FAM%3E%3C%2FPID%3E%3C%2FAPPPOOL%3E%3C%2FPROCESSNAME%3E%3C%2FEM%3E%3C%2FFONT%3E%3C%2FLI%3E%0A%3CLI%3E%3CFONT%20size%3D%222%22%3EExample%3A%3CBR%20%2F%3E%3CEM%3Ew3wp__SCEP__PID__10032__Date__07_20_2021__Time_11_03_39AM__492__%3CSTRONG%3ELog.txt%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FFONT%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EPlease%20archive%20in%20a%20ZIP%20and%20prepare%20to%20hand%20over%20to%20the%20support%20engineer%3B%20upload%20in%20a%20secure%20file%20transfer%20space.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ERemember%26nbsp%3B%3C%2FSPAN%3E%3CA%20title%3D%22About%20exceptions%20and%20capturing%20them%20with%20dumps%22%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fiis-support-blog%2Fabout-exceptions-and-capturing-them-with-dumps%2Fba-p%2F2234600%22%20target%3D%22_blank%22%3Emy%20article%20about%20how%20exceptions%20are%20handled%20and%20how%20to%20collect%20memory%20dumps%20to%20study%20them%3C%2FA%3E%3CSPAN%3E.%20We%20can%20double%20check%20if%20a%20crash%20occurred%20or%20not%3A%26nbsp%3B%3C%2FSPAN%3E%3CA%20title%3D%22HTTP%20response%20503%20Service%20Unavailable%20from%20IIS%3A%20one%20common%20generic%20cause%22%20href%3D%22https%3A%2F%2Flinqto.me%2Frapid-fail-protection%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Eread%20about%20w3wp.exe%20crashes%3C%2FA%3E%3CSPAN%3E.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3E%3CSTRONG%3E%3CEM%3EAside%3C%2FEM%3E%3C%2FSTRONG%3E%3CEM%3E%3A%20Just%20in%20case%20you%20are%20wondering%20what%20I%20use%20to%20capture%20screenshots%20for%20illustrating%20my%20articles%2C%20check%20out%20this%20little%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FEM%3E%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fp%2Fsharex%2F9nblggh4z1sp%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CEM%3EShareX%3C%2FEM%3E%3C%2FA%3E%3CEM%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eapplication%20in%20Windows%20Store.%3C%2FEM%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2523138%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EWe%20may%20have%20some%20first-chance%20exceptions%20building%20up%20the%20%E2%80%9Cright%E2%80%9D%26nbsp%3Bcontext%20for%20a%20second-chance%20exception%20to%20occur.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E
Co-Authors
Version history
Last update:
‎Sep 20 2021 06:40 AM
Updated by: