在本文中,我们将向您展示在Windows 11/10创建故障转储文件(create a Crash Dump file)的两种方法。也称为内存(Memory)转储文件或Windows转储文件,崩溃转储文件包含有关Windows中特定应用程序或进程崩溃的详细信息。
什么是故障转储文件?
通常用于分析和解决问题,这些内存转储文件(Memory dump files)包含有关在特定崩溃期间运行的文件和进程以及停止的内核模式(Kernel-mode)堆栈的数据。虽然在大多数情况下,您的计算机会自行创建这些文件,主要是在出现复杂情况时,有时您也可能需要手动创建它们。最常见的情况是应用程序在您的计算机上没有响应,您必须将其故障的详细信息发送给技术支持以解决问题。
从广义上讲,存在三种不同类型的故障转储文件,尽管它们都有相同的用途。转储(Dump)文件根据其文件大小和它们保存的信息进行分类。完整的内存转储(complete memory dump)具有最大的信息堆栈。它是系统可以支持的最大转储文件,其大小与您计算机的RAM一样大。内核内存转储文件(Kernel Memory dump files)更小,使它们更容易传输。第三种也是最后一种是小型内存转储(e)(small memory dump file)文件,它只包含最基本的信息,通常只有 256KB 大小。
如何在Windows 11/10故障转储(Crash Dump)文件?
如前所述,有两种方法可以创建故障转储文件。一个通过任务管理器(Task Manager),另一个使用您的命令提示符(Command Prompt)。
1]使用任务管理器(Task Manager)创建故障转储(Create Crash Dump)文件
首先(First),打开任务管理器(Task Manager)。最简单的方法是单击任务栏(Taskbar)并从上下文菜单中选择任务管理器。(Task Manager)单击(Click)进程(Processes)选项卡,然后右键单击要为其创建文件的应用程序。从出现的选项列表中,选择创建(Create)转储文件。
等待(Wait)一段时间,直到该过程完成。收到文件已创建的通知后,单击打开文件(Open File)位置。如果您不希望它保留在默认位置,您可以复制.dmp文件并将其粘贴到您选择的位置。
提示(TIP):您可以 配置 Windows 以 在蓝屏上创建故障转储文件。
2]使用命令提示符(Command Prompt)创建故障转储(Create Crash Dump)文件
为此,您将不得不下载ProcDump。它是一个命令行实用程序,可帮助用户控制应用程序的CPU峰值。它还可以在所述峰值期间生成故障转储。此工具可与命令提示符一起使用以创建故障转储文件。就是这样。
首先,从Windows (Windows SysInternals)SysInternals(ProcDump)网站下载 ProcDump。该文件为 .zip 格式,因此您必须将其解压缩。下载安装后,搜索命令提示符(Command Prompt)并打开以管理员身份运行。
键入以下命令行以打开Procdump文件夹,然后按 Enter。
cd C:\Path\Procdump
您可以通过右键单击应用程序图标并打开其属性来获取ProcDump应用程序的路径。(ProcDump)
之后,为了创建转储文件,请粘贴以下命令行。
procdump APP-NAME
例如,如果你想为File Explorer创建一个转储文件,那么命令行应该是:
procdump explorer
这将为您的文件资源管理器创建一个小型转储文件。通过将应用名称替换为Process ID ,可以使用类似的命令行来创建转储文件。因此,备用命令行将是
procdump PROCESS-ID
通过打开任务管理器(Task Manager)并访问详细信息(Details)选项卡,您可以轻松找到任何特定应用程序的进程 ID 。在这里,您将找到 PC 上运行的所有进程及其旁边的相应PID 。
如果要为应用程序或进程创建完整大小的转储文件,可以使用以下命令。
procdump -ma APP NAME/PROCESS ID
在这里,程序的可执行名称或其进程 ID 都可以使用。如前所述,一个完整的转储文件存储了应用程序的所有内存信息,占用了大量的存储空间,但同时,它也超出了大多数人对转储文件的需求。
提示(TIP):您可以更改创建的内存转储文件的数量。
完成后,您会发现手动创建的转储文件与所有其他ProcDump(ProcDump)文件位于同一文件夹中。这是从Microsoft.com下载(Microsoft.com)ProcDump的 .zip 文件的链接。
我们希望这篇文章能够清楚地说明什么是故障转储文件,为什么需要它们,以及如何在需要时手动创建它们。
相关阅读:(Related reads:)
- 免费的故障转储分析器软件(Free Crash Dump Analyzer software)
- 使用 NotMyFault 崩溃、挂起并导致内核内存泄漏
- 故障转储文件中的物理内存限制(Physical Memory Limits in Crash Dump files)
- 机器内存转储收集器
- 物理内存分配和内存状态。
How to manually create a Crash Dump file in Windows 11/10
In this аrticle, we will be showing yоu the two ways in which уou can manually create a Crash Dump file in Windows 11/10. Also known as a Memory dump file or a Windows dump file, a crash dump file holds details concerning a specific application or process crash in Windows.
What is a Crash Dump file?
Commonly used to analyze and troubleshoot an issue, these Memory dump files hold data on the files and processes that were running during a particular crash and also the Kernel-mode stack that stopped. While for the most part, your computer creates these files on its own, mostly when there is a complication, there may arise a need for you to create them manually sometimes too. The most common scenario would be when an app is not responding on your computer, and you have to send details of its malfunctioning to the technical support to resolve the issue.
Broadly speaking, there are three different types of crash dump files, even though all of them serve the same purpose. Dump files are categorized based on their file size and the information they hold. A complete memory dump has the biggest stack of information. It’s the biggest dump file that a system can support, with its size as big as your computer’s RAM. Kernel Memory dump files are smaller, making them easier to transfer around. The third and final type is a small memory dump file, which contains only the most basic information and is normally only 256KB in size.
How to manually create a Crash Dump file in Windows 11/10?
As mentioned earlier, there are two ways in which you can create a crash dump file. One via the Task Manager, and the other using your Command Prompt.
1] Create Crash Dump files using Task Manager
First things first, open the Task Manager. The simplest way to do it is by clicking on the Taskbar and selecting Task Manager from the context menu. Click on the Processes tab and right-click the app that you want to create the file for. From the list of options that appear, select Create dump file.
Wait for some time till the process is finished. Once you’re notified that the file has been created, click on Open File location. If you don’t want it to stay where it’s been located by default, you can copy the .dmp file and paste it in the location of your choice.
TIP: You can configure Windows to create Crash Dump Files on Blue Screen.
2] Create Crash Dump files using Command Prompt
For this, you’re going to have to download ProcDump. It’s a command-line utility that helps users in keeping an application’s CPU spikes in check. It also does the job of generating crash dumps during said spikes. This tool can be used alongside the command prompt to create crash dump files. Here’s how.
Firstly, download ProcDump from the Windows SysInternals website. The file is in a .zip format, so you will have to extract it. Upon downloading and installing, search for Command Prompt and open to run it as administrator.
Type the following command line to open the Procdump folder and press enter.
cd C:\Path\Procdump
You can get the path to the ProcDump app by right-clicking on the app icon and opening its properties.
After that, in order to create a dump file, paste the following command line.
procdump APP-NAME
For example, if you want to create a dump file for File Explorer, then the command line would be:
procdump explorer
This is going to create a mini-dump file for your file explorer. A similar command line can be used for the creation of a dump file by replacing the app name with the Process ID. So, an alternate command line would be
procdump PROCESS-ID
You can easily find the process ID of any particular application by opening Task Manager and visiting the Details tab. Here, you’ll find all the processes running on your PC and their respective PID next to them.
If you want to create a full-size dump file for an application or process, you can make use of the following command.
procdump -ma APP NAME/PROCESS ID
Here too, both the executable name of the program or its process ID will work. As mentioned earlier, a complete dump file stores all the memory information about the app and takes up substantial storage, but at the same time, it’s more than what most people need out of a dump file.
TIP: You can change the number of Memory Dump Files that are created.
Once done, you will find your manually created dump files housed in the same folder as all the other ProcDump files. Here is the link to download the .zip file for ProcDump from Microsoft.com.
We hope that this post was able to bring some clarity about what crash dump files are, why you may need them, and how they can be manually created if need be.
Related reads:
- Free Crash Dump Analyzer software
- Crash, hang, and cause kernel memory leaks using NotMyFault
- Physical Memory Limits in Crash Dump files
- Machine Memory Dump Collector
- Physical memory allocation and memory status.