eclipse-mat

How to actually see a Bitmap taken from an Android heap dump

别说谁变了你拦得住时间么 提交于 2019-12-19 03:08:45
问题 In the process of tracking severe memory issues in my app, I looked at several heap dumps from my app, and most of the time I have a HUGE bitmap that I don't know of. It takes 9.4MB, or 9,830,400 bytes, or actually a 1280x1920 image at 4 bytes per pixels. I checked in Eclipse MAT, it is indeed a byte[9830400], that has one incoming reference which is a android.graphics.Bitmap . I'd like to dump this to a file and try to see it. I can't understand where is it coming from. My biggest image in

How to actually see a Bitmap taken from an Android heap dump

房东的猫 提交于 2019-12-19 03:08:02
问题 In the process of tracking severe memory issues in my app, I looked at several heap dumps from my app, and most of the time I have a HUGE bitmap that I don't know of. It takes 9.4MB, or 9,830,400 bytes, or actually a 1280x1920 image at 4 bytes per pixels. I checked in Eclipse MAT, it is indeed a byte[9830400], that has one incoming reference which is a android.graphics.Bitmap . I'd like to dump this to a file and try to see it. I can't understand where is it coming from. My biggest image in

Mat can't open the dump file

被刻印的时光 ゝ 提交于 2019-12-07 11:55:24
问题 My jmap command is sudo -u flume /usr/java/jdk1.8.0_60/bin/jmap -F -dump:format=b,file=heap.hprof pid , But eclips mat can't open the dump file,and throw an exception. java.lang.NullPointerException at org.eclipse.mat.hprof.HprofParserHandlerImpl.resolveClassHierarchy(HprofParserHandlerImpl.java:587) at org.eclipse.mat.hprof.Pass2Parser.readInstanceDump(Pass2Parser.java:205) at org.eclipse.mat.hprof.Pass2Parser.readDumpSegments(Pass2Parser.java:159) at org.eclipse.mat.hprof.Pass2Parser.read

Is it possible to view threads from hprof dump / threads in heap dump

怎甘沉沦 提交于 2019-12-04 09:44:12
问题 I have got a large (5GB) hprof dump, created by application when OutOfMemoryError occurred. (Using XX: HeapDumpOnOutOfMemoryError ). Unfortunately there are no logs collected when this error happened. Re-creating this will take couple of hours. I was hoping if some tools could show the exception stack trace or all threads stacks etc from hprof. I am currently using MAT, could not see a way to get thread information. Which tool I could use? (I am not sure if hprof file has information about

Is it possible to view threads from hprof dump / threads in heap dump

為{幸葍}努か 提交于 2019-12-03 03:13:53
I have got a large (5GB) hprof dump, created by application when OutOfMemoryError occurred. (Using XX: HeapDumpOnOutOfMemoryError ). Unfortunately there are no logs collected when this error happened. Re-creating this will take couple of hours. I was hoping if some tools could show the exception stack trace or all threads stacks etc from hprof. I am currently using MAT , could not see a way to get thread information. Which tool I could use? (I am not sure if hprof file has information about thread/location of call when OOM occurred). ( I do know to how to take thread dump in normal cases. The

How to actually see a Bitmap taken from an Android heap dump

社会主义新天地 提交于 2019-11-30 21:29:36
In the process of tracking severe memory issues in my app, I looked at several heap dumps from my app, and most of the time I have a HUGE bitmap that I don't know of. It takes 9.4MB, or 9,830,400 bytes, or actually a 1280x1920 image at 4 bytes per pixels. I checked in Eclipse MAT, it is indeed a byte[9830400], that has one incoming reference which is a android.graphics.Bitmap . I'd like to dump this to a file and try to see it. I can't understand where is it coming from. My biggest image in all my drawables is a 640x960 png, which takes less than 3MB. I tried to use Eclipse to "copy value to

eclipse memory analyzer sees small part (363,2MB) of entire heap dump (8GB)

╄→гoц情女王★ 提交于 2019-11-29 02:21:19
I was trying to investigate java.lang.OutOfMemoryError: GC limit exceeded which occurs at high load of our web app deployed in tomcat. Heap size was set to 8GB ( -Xms2048m -Xmx8192m ) At some point in time our application become unresponsive due to GC activity overhead. I could see in logs that Full GC was occurring multiple times in a row. So I took heap dump with following command ( jmap -F -dump:format=b,file=/root/dump2.hprof 4963 ). File containing dump was 9GB in size. After dump was taken (app was frozen for about 45minutes), multiple full GCs occured till OutOfMemoryError was thrown.

eclipse memory analyzer sees small part (363,2MB) of entire heap dump (8GB)

做~自己de王妃 提交于 2019-11-27 16:37:37
问题 I was trying to investigate java.lang.OutOfMemoryError: GC limit exceeded which occurs at high load of our web app deployed in tomcat. Heap size was set to 8GB ( -Xms2048m -Xmx8192m ) At some point in time our application become unresponsive due to GC activity overhead. I could see in logs that Full GC was occurring multiple times in a row. So I took heap dump with following command ( jmap -F -dump:format=b,file=/root/dump2.hprof 4963 ). File containing dump was 9GB in size. After dump was