三步配置自动抓取w3wp.exe进程crash dump。
(1)启动Windows Error Reporting Service服务
(2)将如下脚本保存到文本中,命名为iis-crash-dump并保存为reg格式
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsWindows Error ReportingLocalDumpsw3wp.exe] "DumpFolder"=hex(2):64,00,3a,00,5c,00,64,00,75,00,6d,00,70,00,73,00,00,00 "DumpCount"=dword:00000002 "DumpType"=dword:00000002
(3)管理员身份双击运行iis-crash-dump.reg脚本,检查注册表修改成功[计算机HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsWindows Error ReportingLocalDumpsw3wp.exe]
(4)待问题重现后从d:dumps路径下查找dump文件即可