Installing Eclipse Memory Analyser Tool for Heap Dump Analysis

Following are instructions to install the Eclipse Memory Analyzer Tool for java heap dump analysis

Download required files to install Memory Analyzer

1. Download Memory Analyzer from http://www.eclipse.org/mat/downloads.php(~ 40 MB)
2. Download the Memory Analyzer Extension Pack zipped update site from https://www.sdn.sap.com/irj/scn/index?rid=/webcontent/uuid/c065b342-285c-2d10-559b-dffbb1aa5904 (~ 1 MB)
3. If analysing .phd files, download IBM's Diagnostic Tool Framework for Java zipped update site from ftp://ftp.software.ibm.com/software/java/support/tools/dtfj/dtfj-updatesite.zip (~ 2 MB)

Files required for MAT to install MAT

Configure Memory Analyser properties

Extract Memory Analyser zip file and open MemoryAnalyzer.ini. Change -Xmx1024m to a value to reflect the amount of free memory in your PC.

Double-click on MemoryAnalyzer.exe to start Memory Analyser Tool

Memory Analyser Tool

Install IBM DTFJ and SAP NW extensions


1. Go to Help --> Software Updates --> Find and Install

Memory Analyser Tool Extensions

2. Select Search for new features to install and click Next

Memory Analyser Tool Extensions Installation

3. Click on New Archived Sites and browse to MemoryAnalyzer-extensions-update-site.zip

Memory Analyser Tool Extensions Installation

SAP NW Extensions for MAT

4. Similarly select dtfj-updatesite.zip and click Next

IBM DTFJ Extensions for MAT

5. Read and accept the license agreements and click Next



6. Click Finish to install the extensions

Extensions on MAT

7. Click Install All to ignore the warning

Extensions on MAT

8. Restart Memory Analyser to reflect changes.

Restart MAT after installing extensions
Leak Suspects analysed on a sample .hprof heap dump:


Leak suspects using Memory Analyser Tool

Other Tools for Heap Dump Analysis:

HeapAnalyzer: http://www.alphaworks.ibm.com/tech/heapanalyzer
Heap Analyzer Tool (HAT): https://hat.dev.java.net/
VisualVM: https://visualvm.dev.java.net/

More Resources

FAQ on MAT
SDN Forum: Memory Analyzer
Java Developer's Guide to Eclipse
How to use SAP Heap Dump Analyzer

Comments

Popular posts from this blog

OS/DB Migration - CMD. STR, TOC, EXT, R3load, DDLDBS.TPL and more

Fixing Inconsistent Table - Table activation fails due to inconsistency between DD and DB

301 Redirect Using SAP Web Dispatcher