Problems getting data using hprof
843811Oct 29 2003 — edited Oct 14 2004I'm trying to run hprof in order to obtain memory profile data. I'm investigating an apparent memory leak. I'm using JDK 1.3.1 and my applications are running under Tomcat version 4.01. I'm running hprof by providing the following options to the JVM:
-Xrunhprof:heap=all
After I run my application, and then terminate it, I get a series of error messages in the console window.
The error messages are as follows:
HPROF ERROR: unable to resolve a method id
HPROF ERROR: got NULL trace in obj_alloc
HPROF ERROR: unable to map JVMPI obj ID to hprof obj ID in globalref_alloc
There's very little information in the hprof output file. If I run hprof with heap=dump, I don't get the error messages, but I don't get any interesting information in the output file either.
Does anybody have any idea on what these error messages might mean, or what I need to do to get good data from the profiler?
---Mike