[英]How do you get Windows Error Reporting (WER) to save memory dumps for hangs?
WER is creating memory dumps after an application hangs. 应用程序挂起后,WER正在创建内存转储。 When Windows shows the dialog box ApplicationName is not responding , if the user clicks Close the program , I can see .hdmp files being created in
C:\\ProgramData\\Microsoft\\Windows\\WER\\Temp
. 当Windows显示对话框ApplicationName没有响应时 ,如果用户单击“ 关闭程序” ,则可以在
C:\\ProgramData\\Microsoft\\Windows\\WER\\Temp
看到正在创建的.hdmp文件。 After it sends them to Microsoft, this folder is created: C:\\ProgramData\\Microsoft\\Windows\\WER\\ReportArchive\\AppHang_WindowsFormsApp5_823dc9208bf3a14f898f39469b7b6a0c6f17c7_3db8b24d_07a39f1b
. 将它们发送给Microsoft之后,将创建以下文件夹:
C:\\ProgramData\\Microsoft\\Windows\\WER\\ReportArchive\\AppHang_WindowsFormsApp5_823dc9208bf3a14f898f39469b7b6a0c6f17c7_3db8b24d_07a39f1b
。 However, this folder only has a .wer file with a summary. 但是,此文件夹只有一个带有摘要的.wer文件。
Can Windows Error Reporting be configured to keep the memory dumps capturing the unresponsive application on the local disk? 是否可以将Windows错误报告配置为保留内存转储以捕获本地磁盘上无响应的应用程序?
I have already tried Computer\\HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\Windows Error Reporting\\LocalDumps
, but it is only creating dumps for crashes, not hangs. 我已经尝试过
Computer\\HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\Windows Error Reporting\\LocalDumps
,但是它只是为崩溃创建转储,而不是挂起。
You can use the ConfigureArchive setting of WER and set it to '2' [All data]. 您可以使用WER的ConfigureArchive设置并将其设置为“ 2” [所有数据]。 That will capture and archive all the data (instead of just Report.wer).
这将捕获并存档所有数据(而不只是Report.wer)。
See ConfigureArchive at https://docs.microsoft.com/en-us/windows/desktop/wer/wer-settings . 请参阅https://docs.microsoft.com/zh-cn/windows/desktop/wer/wer-settings上的 ConfigureArchive 。
From an elevated prompt, run: 在提升的提示符下,运行:
Reg add "hklm\software\microsoft\windows\windows error reporting" /f /t REG_DWORD /v ConfigureArchive /d 2
Setting Corporate WER server would cause all the crash/hang reports to sit on your device and they will never reach Microsoft. 设置公司WER服务器将导致所有崩溃/挂起报告都位于您的设备上,并且它们永远不会到达Microsoft。 That may not be the ideal solution.
那可能不是理想的解决方案。
Create a REG_SZ value called CorporateWerServer
in Computer\\HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\Windows Error Reporting\\
, and set it's value to empty string. 在
Computer\\HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\Windows Error Reporting\\
创建一个名为CorporateWerServer
的REG_SZ值,并将其值设置为空字符串。 Since Windows cannot contact the Corporate WER Server, the hang dumps will remain in C:\\ProgramData\\Microsoft\\Windows\\WER\\ReportQueue\\
由于Windows无法联系Corporate WER Server,因此挂起转储将保留在
C:\\ProgramData\\Microsoft\\Windows\\WER\\ReportQueue\\
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.