自动内存转储Automatic Memory Dump

自动内存转储包含与内核内存转储相同的信息。An Automatic Memory Dump contains the same information as a Kernel Memory Dump. 这两者之间的差异不是转储文件本身,而是 Windows 设置系统分页文件大小的方式。The difference between the two is not in the dump file itself, but in the way that Windows sets the size of the system paging file.

如果系统分页文件大小设置为 系统管理的大小,并且内核模式故障转储设置为 自动内存转储,则 Windows 可以将页面文件的大小设置为小于 RAM 大小。If the system paging file size is set to System managed size, and the kernel-mode crash dump is set to Automatic Memory Dump, then Windows can set the size of the paging file to less than the size of RAM. 在这种情况下,Windows 会设置足够大的页面文件大小,以确保大多数时间都可以捕获内核内存转储。In this case, Windows sets the size of the paging file large enough to ensure that a kernel memory dump can be captured most of the time.

如果计算机崩溃且页面文件不够大,无法捕获内核内存转储,Windows 会将页面文件的大小增加到至少大小的 RAM。If the computer crashes and the paging file is not large enough to capture a kernel memory dump, Windows increases the size of the paging file to at least the size of RAM. 此事件的时间记录在注册表中:The time of this event is recorded here in the Registry:

HKLM \系统 \CurrentControlSet \控件 \CrashControl \LastCrashTimeHKLM\SYSTEM\CurrentControlSet\Control\CrashControl\LastCrashTime

增加的分页文件大小将保留4周,然后返回到较小的大小。The increased paging file size stays in place for 4 weeks and then returns to the smaller size. 如果要在4周之前返回到较小的页面文件,可以删除注册表项。If you want to return to the smaller paging file before 4 weeks, you can delete the Registry entry.

若要查看页面文件设置,请参阅 "控制面板 > 系统和安全 > 系统 > 高级系统设置"。To see the paging file settings, go to Control Panel > System and Security > System > Advanced system settings. 在 " 性能" 下,选择 " 设置"。Under Performance, select Settings. 在 " 高级 " 选项卡上的 " 虚拟内存" 下,选择 " 更改"。On the Advanced tab, under Virtual memory, select Change. 在 "虚拟内存" 对话框中,可以看到页面文件设置。In the Virtual Memory dialog box, you can see the paging file settings.

"虚拟内存" 对话框的屏幕截图。

默认情况下,自动内存转储文件写入% SystemRoot% \ Memory。The Automatic Memory Dump file is written to %SystemRoot%\Memory.dmp by default.

Windows 8 及更高版本中提供自动内存转储。The Automatic Memory Dump is available in Windows 8 and later.

注意   若要在调试自动内存转储时取消丢失页错误消息,请使用 "忽略 _ 缺少的 _ 页" 命令。Note  To suppress missing page error messages when debugging an Automatic Memory Dump, use the .ignore_missing_pages command.

相关主题Related topics

内核模式转储文件的种类Varieties of Kernel-Mode Dump Files

内核模式转储文件Kernel-Mode Dump Files

创建内核模式转储文件Creating a Kernel-Mode Dump File