How to analyze the heap dump using jhat
I ran the jhat on the heap dump, it has generated the reports. H开发者_StackOverflowow 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.
Finally settled with Eclipse Memory Analyzer, which gives almost everything we can get from the dump
Have you read the documentation for JHAT? It details the various types of queries that can be performed using the heap analysis tool.
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.
精彩评论