Does jhat work for heap dumps produced from earlier JDKs?

Short answer: Yes. Mustang's jhat works against heap dumps produced from earlier JDKs as well. It just works -- because it uses the same HPROF binary file format as used by hprof profiler and jmap tool. jmap tool can dump from live Java processes and Java core dumps. This feature has been backported to 1.4.2_09 (solaris only) and 5.0 update 5 (solaris and linux only) releases. hprof produces heap dump with allocation site trace information in the same format -- you need to use format=b option with hprof. As you'd probably know, hprof prodifier has been existing in JDK for quite some time.

And yes, HPROF binary file format is platform independent. Therefore jhat on any platform can parse and view heap dumps produced from any platform

Comments:

jhat can be extremely useful for diagnosing OutOfMemoryError issues in application servers. I've used it with weblogic 8.1 to confirm an OOM bug on a 1Gb heap. Having Solaris 10 running on a 24Gb AMD64 v40z with jhat in 64-bit helps to deal with large heap dumps.

Posted by Philippe Lantin on October 14, 2005 at 03:11 PM IST #

I can't seem to get JHat (Windows, Mustang 70) to read the heap.bin files generated by jmap (Linux, 1.5.0_05). It complains about the dreaded magic number.

Posted by guest on February 08, 2006 at 07:19 PM IST #

Post a Comment:
Comments are closed for this entry.
About

sundararajan

Search

Archives
« July 2015
SunMonTueWedThuFriSat
   
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
       
Today
Bookmarks
Links

No bookmarks in folder

Blogroll

No bookmarks in folder

News

No bookmarks in folder