Java thousand ask _07JVM architecture (014) _ What is a dump file

Source: Internet
Author: User

Click to enter _ more _java thousand ask

1. What is a dump file

The dump file is a memory image of the process. You can save the execution state of the program through the debugger to the dump file.

Dump files are used to debug drivers for driver writers, which must be opened with specialized tool software.

When our program is published, the code cannot be traced on the client, so the dump (. dmp extension) file is especially important to us. We can reproduce the problem by using the. dmp file, and then, depending on the status of the rendition (including Stack calls), you can find the line number where the problem occurred.

2. How to generate dump file

There are various methods of generating dump files, the most common one is through WinDbg software. The steps are as follows:

    1. Download the installation WinDbg.

    2. Open WinDbg, open File->attach to a process, and then display the processes (. exe) that you want to monitor in the list.

    3. When the program crashes, execute the dump command to produce the. dmp file, which is commonly used in commands (you can query the WinDbg command manual for the command meaning):

C:/dumps/myappC:/dumps/myappC:/dumps/myapp.dmp

Executing the above results in a DMP file.

3. How to analyze dump files

The dump file can also be analyzed via WinDbg, with the following steps:

    1. Open WinDbg, open File->sybolm File path, specify the path of the. PDB generated when publishing exe.

    2. Open File->open Crash Dump, open a. dmp file.

    3. Use the WinDbg command to parse a bug, such as (you can query the WinDbg command manual for the meaning of the command):!analyze-v

    4. You can use the function of the shortcut bar to view the basic information of some variables

Java thousand ask _07JVM architecture (014) _ What is a dump file

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.