Questions tagged [hprof]

A java heap/CPU profiling tool

142 questions
1
vote
1 answer

To calculate cpu usage using JVMTI

I'm looking to find the CPU usage of my java application. I found the best way to get CPU usage is (process_time/elapsed_time)*100.0. For a java application, the process_time is got by com.sun.management.OperatingSystemMXBean. Is there a way to…
Raj
  • 440
  • 2
  • 6
  • 22
1
vote
0 answers

Opening Hadoop HPROF .profile files with YourKit

YourKit alleges to be able to open binary HPROF dumps, but it insists that binary dumps made from Hadoop jobs are not valid snapshots. The dumps are made by specifying the mapred.task.profile.params option with a value of…
DeejUK
  • 12,891
  • 19
  • 89
  • 169
1
vote
3 answers

How to gather profiling information for a Java 1.4 application?

A Java application I support that runs on JRE 1.4.2_12 is hanging near midnight every night. I'd like to try and record as much profiling information as I can to discover if there is an issue in the JVM or external to the app. I'd like to use HPROF…
magneticMonster
  • 2,373
  • 6
  • 30
  • 46
0
votes
3 answers

Using hprof on a running application in Sun Java 5

We have an enterprise java application(ear - few ejb's and a webapp) deployed on to weblogic 10 and using Sun java 5. The response time , CPU and memory usage is fine under few users of load but if we increase the concurrent users to >100 we see…
Kumar225
  • 227
  • 1
  • 5
  • 13
0
votes
1 answer

Parsing hprof memory dump

I am working on an Android application and I have a memory dump (i.e. a .hprof file) that I captured from my application. I want to investigate a certain container of the application. Just like an ArrayList, the container has a growth policy that…
T code
  • 447
  • 2
  • 7
  • 12
0
votes
0 answers

MAT Histogram Objects count is not equal to Android Studio Profiler

I use Android Studio Profiler dump heap the use hprof-conv to convert the heap file into a standard format $ANDROID_HOME/platform-tools/hprof-conv memory-20230112T162214.hprof memory-20230112T162214.conv.hprof but the MAT Histogram Objects count is…
0
votes
0 answers

Replacement for hprof heap=sites, for Java 17

Hprof was removed from the JDK in version 9. While there exist alternatives for some of its functionality, I cannot seem to find anything which matches the functionality of Hprof's "heap=sites". In this mode, I'd simply run the application with an…
0
votes
2 answers

How to get Eclipse MAT memory leak suspect report in JSON/XML format?

I am trying to add Java memory profiling into my devops pipeline. I am using Eclipse MAT command line script for this purpose. Once I provide the hprof file as input to this and it generates suspect report. I need to parse this HTML report and make…
JavaUser
  • 25,542
  • 46
  • 113
  • 139
0
votes
1 answer

What is the difference between android and standard hprof file?

Recently I am doing some researches on Android hprof file analysis. But the relevant documents seem to be less than I expected. I can only get standard binary format of hprof file in documents of Oracle. In haha library (now called leakcanary), I…
0
votes
2 answers

What do these HPROF errors mean?

I'm seeing the following errors in my console logs: HPROF ERROR: unable to resolve a method id HPROF ERROR: got NULL trace in obj_alloc HPROF ERROR: duplicate obj_id in object_alloc HPROF ERROR: unable to resolve a method id HPROF ERROR: got NULL…
braveterry
  • 3,724
  • 8
  • 47
  • 59
0
votes
1 answer

Can I analyze .hprof file with Java code?

I just learned Java Mission Control. I thought about how to make Java Flight Recorder with Java code. I analyzed the heap file with lots of different tools, but this time I want to do it with code.
0
votes
1 answer

Understanding java memory usage

I am trying to solve a memory issue I am having with my tomcat servers and I have some questions about memory usage. When I check my process memory usage with top I see its using 1Gb physical memory, after creating a core dump using gdb, the core…
jacob
  • 1,397
  • 1
  • 26
  • 53
0
votes
0 answers

Interprete hprof result to solve OutOfMemory on an app

I am developed a new android app. This app contains a number of activities ( more than 8). the simple workflow is as follows: the user launches the app and gets a list of elements once he has selected an element, he gets details about this…
neo m
  • 222
  • 1
  • 4
  • 13
0
votes
1 answer

How to release(gc) bluetoothgatt instance?

In my project, I called the mCmdBinder.gattConnect() and mCmdBinder.gattClose() method multiple times and it generated multiple BluetoothGatt instances. In the dumped file .hprof, I can see there are multiple instances of the BluetoothGatt object…
0
votes
1 answer

Android memory analyze - Different retained memory results

I tried to analyze the memory consumption of my application. So I have a .hprof File. The crazy thing now is I get different results with pretty much every software. I took a Sample Class where I compared all the values. Pretty much all numbers are…
Highriser
  • 212
  • 2
  • 14