Questions tagged [hprof]

A java heap/CPU profiling tool

142 questions
49
votes
2 answers

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

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…
HitOdessit
  • 7,198
  • 4
  • 36
  • 59
32
votes
6 answers

react-native: File android/java_pid14920.hprof is 311.59 MB; this exceeds GitHub's file size limit

I would like to push my project into the github, however i just notice there is a file called java_pid14920.hprof inside the android folder and cause around 300MB remote: error: File android/java_pid14920.hprof is 301.75 MB; this exceeds GitHub's…
FeelRightz
  • 2,777
  • 2
  • 38
  • 73
32
votes
4 answers

Can I generate an HPROF file at will?

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?
Nick Stinemates
  • 41,511
  • 21
  • 59
  • 60
20
votes
3 answers

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

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…
emmby
  • 99,783
  • 65
  • 191
  • 249
18
votes
2 answers

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

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.
Pawel Urban
  • 1,316
  • 1
  • 12
  • 28
15
votes
2 answers

Please help me understand these Clojure Hprof traces

I have some Clojure code that is simulating and then processing numerical data. The data are basically vectors of double values; the processing mainly involves summing their values in various ways. I will include some code below, but my question…
andrew cooke
  • 45,717
  • 10
  • 93
  • 143
13
votes
2 answers

Is there any way to analyze a truncated Java Heap Dump (hprof file)?

In my work, we are running into a difficult to reproduce OOM issue. Or, more accurately, it is very easy to reproduce on one system, making that system unusable, but difficult to reproduce anywhere else, given the same inputs. The application is…
user1410910
  • 1,050
  • 6
  • 12
13
votes
2 answers

analyse a HPROF memory dump file from command line programmatically

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…
Abhishek
  • 1,749
  • 9
  • 27
  • 39
12
votes
2 answers

running hprof from sbt

How do I run hprof from sbt? Are there different options to profile the CPU vs. the heap?
dsg
  • 12,924
  • 21
  • 67
  • 111
11
votes
4 answers

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

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")…
David Citron
  • 43,219
  • 21
  • 62
  • 72
11
votes
2 answers

HPROF Analyzer tool not found in Android studio 3

HPROF Analyzer/Analyzer tasks is a great tool in android studio 2 which helps detect memory leaks. It's less time-consuming than using the eclipse MAT tool. However, I couldn't find it using the new Android Profiler in AS3. Any help is greatly…
Rami Jemli
  • 2,550
  • 18
  • 31
11
votes
1 answer

parse memory snapshot hprof index files programmatically

I am trying to programmatically analyze an hprof file. Using the hprof-conv tool in the android-sdk I generated a bunch of com.your.package.index files. How do I programmatically parse these .index files? I want run some custom analysis on the…
Abhishek
  • 1,749
  • 9
  • 27
  • 39
10
votes
1 answer

android hprof files in project src

I have an android project on my C:/ drive which Android Studio points to. I have noticed that when i Zip up the project folder, it has gone from say 20 MB to 42 GB. There are lots of hprof files. I have looked at some posts and i do not want to use…
turtleboy
  • 8,210
  • 27
  • 100
  • 199
10
votes
2 answers

hprof file format

Does anyone know a reference for the .hprof (binary heap dumps) file format? Does anyone know libraries that handle .hprof files? I know that hat does that and also VisualVM through a NetBeans plugin. But are there others?
Marian
  • 2,617
  • 1
  • 16
  • 13
9
votes
1 answer

Why would I want to find "Duplicate Strings" with HPROF Viewer and Analyzer?

Using the Android Memory Monitor, especially its "Dump Java Heap" feature, I am currently hunting down memory leaks in my app. On the left of Android Studio's dump/HPROF view there is an option to open "Analyzer Tasks" and there you can tell the…
kalabalik
  • 3,792
  • 2
  • 21
  • 50
1
2 3
9 10