heap-dump

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

Java Heap Dump error - Metadata does not appear to be polymorphic

风格不统一 提交于 2019-12-03 23:17:28
问题 I get this Stacktrace when trying to take a heap dump from a running Java process. What causes this and what do I have to do to make a proper heap dump? Dumping heap to dump.bin ... Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java

memory analysis from eclipse ide does not list any local process id when acquire heap dump dialog is clicked

笑着哭i 提交于 2019-12-03 16:48:35
Using memory analyzer from eclipse ide (kepler), I'm trying to acquire heap dump from a locally running VM while an program is running, however acquire heap dump dialog does not list any pid to select. I try to configure hdrof jmap dump provider with -jdkhome C:\Program Files\Java\jdk1.8.0_05\bin but nothing happens. Any solution. Thanks. remove bin from your path , It should be -jdkhome C:\Program Files\Java\jdk1.8.0_05 来源: https://stackoverflow.com/questions/24433668/memory-analysis-from-eclipse-ide-does-not-list-any-local-process-id-when-acquire

ways how to get heap dump from running tomcat 7

巧了我就是萌 提交于 2019-12-03 12:11:08
问题 I've tried this Get a heapdump on JVM from Tomcat 6 but it doesn't work for me, Is there other ways to get heap dump from tomcat server? Thanks in advance! 回答1: The easiest way to get heap dump is to use jmap. On the machine with java process execute jmap command. Example of usage: jmap -dump:file=/mnt/heapdump_2013-04-01.data 29842 use jps to know java Pid. Also you can make heap dump via jvisualvm. You can connect to the remote machine via jmx or jstatd. You can make heapdump and store on

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,

How to take heap snapshot of Xamarin.Android's Mono VM?

偶尔善良 提交于 2019-12-03 05:20:15
问题 Background: I am trying to track down a memory leak in a Xamarin.Android app. Using DDMS and Eclipse Memory Profiler, I am able to see which objects are alive. When trying to track what is holding them alive (GC Root), I only see "Native stack" (of course). How can I take a heap snapshot of the MONO VM? So I can later use it with i.e. heapshot tool? Or are there ANY OTHER TECHNIQUES I can use to find what is holding an object alive in Xamarin.Android's .NET part? Is it possible to do

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

Garbage Collector First and JMap EOF bug

折月煮酒 提交于 2019-12-03 02:55:56
We are working over our client's production server heap to detect and solve memory leaks. For this we are using jmap periodically to collect the necessary information. But last week we couldn't take the dump, because it triggered a EOF error and shutdown the Tomcat instance. I searched on the internet but couldn't find any concrete information about this error. We detected that it only occurs when using the Gc First garbage collector algorithm. This is the command line we used to perform the jmap: jmap -dump:format=b,file=heap.bin <PID> Java version on the server: JDK 1.7.0_7 x64 Has anyone

ways how to get heap dump from running tomcat 7

我怕爱的太早我们不能终老 提交于 2019-12-03 02:41:19
I've tried this Get a heapdump on JVM from Tomcat 6 but it doesn't work for me, Is there other ways to get heap dump from tomcat server? Thanks in advance! Taky The easiest way to get heap dump is to use jmap . On the machine with java process execute jmap command. Example of usage: jmap -dump:file=/mnt/heapdump_2013-04-01.data 29842 use jps to know java Pid. Also you can make heap dump via jvisualvm . You can connect to the remote machine via jmx or jstatd . You can make heapdump and store on the remote machine. To analyze heapdumps can advice you: MAT . Very powerful tool which allow you to

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

放肆的年华 提交于 2019-12-03 01:41:32
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. FuegoFro 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, and this answer lists the types of things that are roots. red - I haven't actually seen these, but