3

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.

trincot
  • 317,000
  • 35
  • 244
  • 286
John
  • 2,682
  • 5
  • 23
  • 24
  • Finally settled with Eclipse Memory Analyzer, which gives almost everything we can get from the dump. – John Dec 13 '10 at 07:20

3 Answers3

3

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

John
  • 1,210
  • 5
  • 23
  • 51
Joel
  • 29,538
  • 35
  • 110
  • 138
3

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

John
  • 2,682
  • 5
  • 23
  • 24
1

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.

Bill the Lizard
  • 398,270
  • 210
  • 566
  • 880
Emil
  • 13,577
  • 18
  • 69
  • 108