简体   繁体   English

如何避免.dmp文件被删除

[英]How to avoid .dmp files to be deleted

I am looking for the dump files created after an app crash in Windows Server 2019. I found an application event log entry generated by "Windows Error Reporting".我正在寻找 Windows Server 2019 中的应用程序崩溃后创建的转储文件。我发现了由“Windows 错误报告”生成的应用程序事件日志条目。 The event contains some paths under "attached files" and "These files my be available here" entries, but no files are in these locations, except by the "report.wer" file.该事件在“附加文件”和“这些文件在此处可用”条目下包含一些路径,但这些位置中没有文件,除了“report.wer”文件。

I was looking for the.dmp files, but they are gone after one hour the event was recorded.我一直在寻找 .dmp 文件,但在事件记录一小时后它们就消失了。

Is there any windows configuration to clean these files up?是否有任何 windows 配置来清理这些文件? What should I do to keep them a bit longer in disk?我应该怎么做才能让它们在磁盘中保留更长时间?

Seehttps://docs.microsoft.com/en-us/windows/win32/wer/wer-settings .请参阅https://docs.microsoft.com/en-us/windows/win32/wer/wer-settings

  1. See LocalDumps\DumpFolder or LocalDumps\[Application Name]\DumpFolder .请参阅LocalDumps\DumpFolder or LocalDumps\[Application Name]\DumpFolder You could set a local path where crash dumps for your app should be saved.您可以设置应保存应用程序崩溃转储的本地路径。

  2. By default only basic parameters of an error report are archived (usually at C:\ProgramData\Microsoft\Windows\WER\ReportArchive ).默认情况下,仅归档错误报告的基本参数(通常位于C:\ProgramData\Microsoft\Windows\WER\ReportArchive )。 If you want to archive all data, you could try setting the ConfigureArchive WER setting.如果要归档所有数据,可以尝试设置ConfigureArchive WER 设置。
    Note: This would lead to archival of all error reports, which might fill your disk quickly.注意:这将导致所有错误报告的存档,这可能会很快填满您的磁盘。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM