Wednesday, February 22, 2012

How to diagnose memory leaks in live environment

What will you do when you have the performance issue in production environment? Usually installing any debugging tools in production environment is not allowed.


The best way to go is to take a heap dump and analyze it using some tool.


Now we have another question in the mind, which tool is best to analyze the heap dump.
The following is some of the available free tools in the market.
  1. Heap Memory Analyzer from IBM
  2. JHAT from Oracle Java 
  3. Eclipse Memory Analyzer
My vote is for Eclipse Memory Analyzer due to the following reason
  1. Quickly calculate the retained sizes of objects, see who is preventing the Garbage Collector from collecting objects.
  2. Automatically run a report to extract leak suspects.
For more information please refer here http://www.eclipse.org/mat//

No comments:

Post a Comment