The recommended tool is IBM Monitoring and Diagnostic Tools for Java - Memory Analyzer. Note that heap dumps are platform agnostic and can be analysed on any platform regardless of where they were created.
Eclipse Memory Analyzer Tool ( MAT ) is used for analyzing heap dump files ( see Capturing heap dumps before FullGCs to troubleshoot memory problems ) which contain objects in memory. Each heap dump file can be thought of as a snapshot in time and details the memory occupied by specific JVM threads.
Open the heap dump in Eclipse Memory Analyzer using the option File --> Open Heap Dump. First, it will prompt you to create a leak suspect report. The user can create it or skip it. The "overview" tab of the memory analyzer will show the total size of the heap and a pie chart of object size.
A heap dump is a snapshot of all the objects that are in memory in the JVM at a certain moment. They are very useful to troubleshoot memory-leak problems and optimize memory usage in Java applications. Heap dumps are usually stored in binary format hprof files.
Eclipse Memory analyzer http://www.eclipse.org/mat/
Java VisualVM, jvisualvm, included with the JDK. A pathologic Swing program is examined here.
YourKit : http://www.yourkit.com/
Pros:
Cons: Of course... it's not free :(
BHeapSampler http://dr-brenschede.de/bheapsampler/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With