Memory analyzer (MAT) Open Android eclipse dump memory file unknown hprof version Solution

Source: Internet
Author: User


Error opening heap dump 'com.  Mobile. Sync. hprof'. Check the error log for further details.

Error opening heap dump 'com. Mobile. Sync. hprof'. Check the error log for further details.

Unknown hprof version (Java profile 1.0.3) (Java. Io. ioexception)

Unknown hprof version (Java profile 1.0.3)










ThehprofFile you get from Android has Android specific format. You shoshould convert

hprofFile take from Android OS into standardhprofFormat. For this you can use

hprof-convTool that is locatedAndrodiSDK/tools/hprof-conv.


For example:


hprof-conv android.hprof mat.hprof

And then open mat. hprof in memory analyzer.






The reason is: The hprof file format exported by the android virtual machine is different from that exported by the standard Java hprof file format. The root cause is the inconsistency between the two virtual machines.




You only need to use the built-in conversion tool in the SDK for conversion.




Hprof-Conv source file target file





Refer:

http://stackoverflow.com/questions/6219049/error-openning-hprof-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.