Recommendations for a heap analysis tool for Java?

JavaMemoryProfilingHeap Memory

Java Problem Overview


List your favorite heap analysis tools (e.g. jprofiler, jmap, ...). Let's keep it one tool per answer, with a short list of pros and cons for each tool.

Java Solutions


Solution 1 - Java

Eclipse Memory analyzer http://www.eclipse.org/mat/

Solution 2 - Java

Java VisualVM, jvisualvm, included with the JDK. A pathologic Swing program is examined here.

Solution 3 - Java

YourKit : http://www.yourkit.com/

Pros:

  • The interface is clean and it's fast
  • It opened a large 5-gig heap dump where jProfiler grined to a halt. And it only needed 1-2 gigs of JVM ram to do so.

Cons: Of course... it's not free :(

Solution 4 - Java

BHeapSampler http://dr-brenschede.de/bheapsampler/

  • generates a class-level heap-graph as a really intuitive display of the dominant memory structures
  • can process really large heap dumps
  • command-line tool, usable on server side without transfering the dump to the developer's desk

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionripper234View Question on Stackoverflow
Solution 1 - JavadparnasView Answer on Stackoverflow
Solution 2 - JavatrashgodView Answer on Stackoverflow
Solution 3 - JavanandaView Answer on Stackoverflow
Solution 4 - JavaArndtView Answer on Stackoverflow