How to analyze the heap dump using jhat

7.8k Views Asked by At

I ran the jhat on the heap dump, it has generated the reports. How do i use the report to analyze the heap.I couldn't understand completely other than the instance count. Is there any references or case studies on that. In short, i need to proceed furthur, How can i?

Also what is object query language.

3

There are 3 best solutions below

0
On BEST ANSWER

Finally settled with Eclipse Memory Analyzer, which gives almost everything we can get from the dump

1
On

Have you read the documentation for JHAT? It details the various types of queries that can be performed using the heap analysis tool.

1
On

You can use the object query language which is a part of JHAT.See which object's are prominent in memory at the time of heap dump and look up in the code if you can reduce unwanted object creation.

Also have look at this blog on how to fix memory leaks.