hprof

Huge byte[] in my app after HPROF

倖福魔咒の 提交于 2019-12-09 10:08:55
问题 From time to time, especially when implementing new functionalities in my app, I use DDMS + HPROF to analyze memory and heap use. As the App doesn't seem to have any performance-ANR issues and everything works smoothly, initially I didn't care about it - but now, as I see it's approximately always the same size, I'm wondering what the damn can it be. Everytime I run a HPROF, I check the Leak suspects tab. There's always an android.graphics.Bitmap instance that takes approximately 25% of all

Large HPROF file

百般思念 提交于 2019-12-07 13:17:19
问题 I have a very large Heap Dump (.hprof) file (16GB). When I try to open it in Visual Vm,the VM just hangs. I tried to open it in JProfiler. Jprofiler gave me a Out Of Memory error. Below is how my jprofiler.vmoptions looks like. What should be the ideal configuration, I should be using in order to open the HPROF without issues? I am running on a 8GB Linux box. -Xmx1536m -XX:MaxPermSize=128m -Xss2m 回答1: JProfiler 8.1 will be able to open much larger HPROF files without tuning the -Xmx VM

Why can't I get an HPROF dump from certain devices?

独自空忆成欢 提交于 2019-12-07 06:42:36
问题 As has been detailed by many helpful sites, one way to analyze memory usage of Android apps is to execute a "kill -10 [PID]" to trigger an HPROF dump. This seems to work on some devices, and the logcat normally contains something like this: I/dalvikvm(32170): threadid=3: reacting to signal 10 I/dalvikvm(32170): SIGUSR1 forcing GC and HPROF dump I/dalvikvm(32170): hprof: dumping VM heap to "/data/misc/heap-dump-tm1302633572-pid32170.hprof-hptemp". I/dalvikvm(32170): hprof: dumping heap strings

heapdump size vs hprof size

こ雲淡風輕ζ 提交于 2019-12-06 07:00:08
I recently made a heapdump in a hprof format when my jboss server was running with a xms of 4096m and xmx of 4096m and a permsize of 512m. The hprof file generated is over 5gb. When I load the heapdump in visualvm, mat analyzer or yourkit, I only see a total bytes of approximately 1gb. I've tried changed the reachability scope in yourkit but it does not show more than 1 gb. Any idea what this big difference in filesize vs displayed heapdump size can cause? ps: I'm using jdk1.6.0_23 Unfortunately I'm not allowed to submit screenshots here. On the filesystem the hprof size is of 5.227.659 kb and

-XX:+HeapDumpOnOutOfMemoryError not creating hprof file in OOM

為{幸葍}努か 提交于 2019-12-06 06:14:30
问题 I start my java code (1.6.0_16 in Vista) with the following params (among others) -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=../logs . I run the code and I can see in the logs there are two OOM. The first one I know cause I can see in the stdout that the hprof file is being created: java.lang.OutOfMemoryError: Java heap space Dumping heap to ../logs\java_pid4604.hprof ... Heap dump file created [37351818 bytes in 1.635 secs] And then, towards the end of the code I get another OOM, I

Large HPROF file

我是研究僧i 提交于 2019-12-05 21:29:28
I have a very large Heap Dump (.hprof) file (16GB). When I try to open it in Visual Vm,the VM just hangs. I tried to open it in JProfiler. Jprofiler gave me a Out Of Memory error. Below is how my jprofiler.vmoptions looks like. What should be the ideal configuration, I should be using in order to open the HPROF without issues? I am running on a 8GB Linux box. -Xmx1536m -XX:MaxPermSize=128m -Xss2m JProfiler 8.1 will be able to open much larger HPROF files without tuning the -Xmx VM parameter. To get a pre-release, please contact support@ej-technologies. 来源: https://stackoverflow.com/questions

Why can't I get an HPROF dump from certain devices?

霸气de小男生 提交于 2019-12-05 11:14:38
As has been detailed by many helpful sites, one way to analyze memory usage of Android apps is to execute a "kill -10 [PID]" to trigger an HPROF dump. This seems to work on some devices, and the logcat normally contains something like this: I/dalvikvm(32170): threadid=3: reacting to signal 10 I/dalvikvm(32170): SIGUSR1 forcing GC and HPROF dump I/dalvikvm(32170): hprof: dumping VM heap to "/data/misc/heap-dump-tm1302633572-pid32170.hprof-hptemp". I/dalvikvm(32170): hprof: dumping heap strings to "/data/misc/heap-dump-tm1302633572- pid32170.hprof". I/dalvikvm(32170): hprof: heap dump completed,

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

What do the Android Studio HPROF reference tree element colours represent?

走远了吗. 提交于 2019-12-03 11:16:54
问题 Can someone tell me what does bold, blue one and red one positions in HPROF Viewer in Android Studio means exactly ? I ask about one in Reference Tree panel. Best regards. 回答1: I can't find any documentation on this, but from looking through a few heap dumps this is what they seem to be: blue - The closest dominator of the instance selected in the top-right pane. bold - A GC root, eg an instance with depth 0 that should not be collected. This answer has more information on what a GC root is,

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