MAT error: Unknown HPROF Version (JAVA PROFILE 1.0.3) (java.io.IOException) solution

MAT import hprof file error

 

Problem description:
The hprof file exported by DDMS is opened under MAT and an error is reported:

 

Cause of the problem: The hprof file format of the memory file exported by the android virtual machine is different from the standard java hprof file format standard. The root cause is that the virtual machines of the two are inconsistent.

 

Solution: Open the command line window, in the android SDK directory, execute the following command:
hprof-conv source file object file
such as: hprof-conv a.hprof b.hprof
Use MAT to reopen the b.hprof file.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326345075&siteId=291194637