hprof

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

jvisualvm: Stuck on “Loading Heap Dump” screen

泪湿孤枕 提交于 2019-12-01 11:47:32
I created a heap dump file with hprof using this command: java -agentlib:hprof -cp "..\..\jars\trove.jar;.\bin" com.mysite.MyApp This successfully created the file "java.hprof.txt" which was about 5MB. I then opened up jvisualvm to view this file, and loaded it in. But visualvm appears to be stuck on the loading screen. The screen below has been up for about 10 minutes now. Did I miss a step? Should I have used different options on the command line with hprof? How can I read this heap dump file? VisualVM supports heap dumps in binary HPROF format. It is easier to use VisualVM to create heap

analyse a HPROF memory dump file from command line programmatically

☆樱花仙子☆ 提交于 2019-11-28 23:06:53
问题 I was investigation with analyzing a HPROF file using Eclipse's Memory Analyser (MAT). The dominator tree, reports and the OQL interface look really useful. But all this has to be done manually from the MAT software. Is there a commandline interface so I can programmatically parse the HPROF and automatically generate custom reports. This would be useful to integrate this a test infrastructure to do a automatic memory analysis. Btw, the heapsize is will be between 10-60MB. 回答1: ParseHeapDump

HPjmeter-like graphical tool to view -agentlib:hprof profiling output

六月ゝ 毕业季﹏ 提交于 2019-11-28 20:50:09
What tools are available to view the output of the built-in JVM profiler? For example, I'm starting my JVM with: -agentlib:hprof=cpu=times,thread=y,cutoff=0,format=a,file=someFile.hprof.txt This generates output in the hprof ("JAVA PROFILE 1.0.1") format. I have had success in the past using HPjmeter to view these output files in a reasonable way. However, for whatever reason the files that are generated using the current version of the Sun JVM fail to load in the current version of HPjmeter: java.lang.NullPointerException at com.hp.jmeter.f.jb.a(Unknown Source) at com.hp.jmeter.f.a.a(Unknown

Can I generate an HPROF file at will?

℡╲_俬逩灬. 提交于 2019-11-28 17:29:32
I have a java process which is acting dubiously. I'd like to see what's up using the various HPROF analysis tools. How do I generate one on the fly? Yes. You can generate an hprof file (containing heap memory usage) on the fly using the jmap tool, which ships with Sun's Java VM: jmap -dump:file=<file_name> <pid> erickson You have to start the Java process with the correct arguments, which vary a little depending on the JVM version. Then, send a QUIT signal to the process to generate a new file. The output is normally generated when the VM exits, although this can be disabled by setting the

Can I generate an HPROF file at will?

陌路散爱 提交于 2019-11-27 10:30:42
问题 I have a java process which is acting dubiously. I'd like to see what's up using the various HPROF analysis tools. How do I generate one on the fly? 回答1: Yes. You can generate an hprof file (containing heap memory usage) on the fly using the jmap tool, which ships with Sun's Java VM: jmap -dump:file=<file_name> <pid> 回答2: You have to start the Java process with the correct arguments, which vary a little depending on the JVM version. Then, send a QUIT signal to the process to generate a new

MAT (Eclipse Memory Analyzer) - how to view bitmaps from memory dump

大憨熊 提交于 2019-11-27 05:59:44
I'm analyzing memory usage of my Android app with help of Eclipse Memory Analyzer (also known as MAT). Sometimes I can find strange instances of android.graphics.Bitmap class, utilizing big portion of heap. Problem is what I can't find source of this bitmaps, no filename , no resourceID , nothing. All information what I can find for bitmap is following: There is a field mBuffer with array of image pixels, I assume. But it's in some internal Android format, not PNG. Question : how can I view image represented by this bitmap from memory dump? HitOdessit I have found a way to view such bitmaps:

Is there a way to have an Android process produce a heap dump on an OutOfMemoryError?

独自空忆成欢 提交于 2019-11-27 00:37:52
问题 The sun JVM supports a -XX:+HeapDumpOnOutOfMemoryError option to dump heap whenever a java process runs out of heap. Is there a similar option on Android that will make an android app dump heap on an OutOfMemoryException? It can be difficult to try to time it properly when using DDMS manually. 回答1: To expand upon CommonsWare's answer: I have no idea if this works, but you might try adding a top-level exception handler, and in there asking for a heap dump if it is an OutOfMemoryError . I

MAT (Eclipse Memory Analyzer) - how to view bitmaps from memory dump

寵の児 提交于 2019-11-26 11:48:40
问题 I\'m analyzing memory usage of my Android app with help of Eclipse Memory Analyzer (also known as MAT). Sometimes I can find strange instances of android.graphics.Bitmap class, utilizing big portion of heap. Problem is what I can\'t find source of this bitmaps, no filename , no resourceID , nothing. All information what I can find for bitmap is following: There is a field mBuffer with array of image pixels, I assume. But it\'s in some internal Android format, not PNG. Question : how can I