Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getting "java.io.IOException" in MAT?

I had got out of memory exception error.I came to Know that I had a memory leak in my app. Thats why I installed MAT.and I dumped the hprof file.

But while opening that .hprof file I got error like...

Error opening heap dump 'ind.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)".

And I had converted the hprof file by using "hprof-conv fil.hprof file2.hprof". Its Showing like "hprof-conv" command not exists.And I have tried by setting Hprof Action to Open in eclipse in DDMS. But its not working.

like image 974
indraja machani Avatar asked Aug 10 '26 16:08

indraja machani


1 Answers

You have to convert it first in order to use it in MAT.

you can use hprof-conv tool that is located at AndroidSDK/platform-tools/hprof-conv

hprof-conv android.hprof mat.hprof

Then try opening the converted file in MAT.

like image 53
Shahul3D Avatar answered Aug 12 '26 08:08

Shahul3D



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!