skip to main content

SAP NetWeaver Newbie

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

12 comments:

  1. A++ document!! Helped me greatly folks, thanks!

    ReplyDelete
  2. Hello
    Good to know you have found this post useful. Thanks for your feedback.

    ReplyDelete
  3. Excellent Article!!! . Keep up the great work.

    ReplyDelete
  4. thank you very much.it is really help full.

    ReplyDelete
  5. Thanks,
    It worked only for earlier version of EMA i.e.Memory Analyzer 1.0.0 Release, not later

    ReplyDelete
    Replies
    1. Trying out MAT 1.3. Let's see what's not working.

      Delete
    2. I have tried MAT 1.3 out. There are changes in the menu options. For "Install IBM DTFJ and SAP NW extensions" sub-section, you have to use Help > Install New Software to deploy those plugins.

      Delete
  6. thanks for explaining steps to install MAT

    ReplyDelete
    Replies
    1. Great page, helped a lot.. thanks

      Delete

Email Subscription

Get every new post into your inbox by subscribing us.

Want a reason to subscribe?
1. This sitemap might convince you to subscribe.
2. We do not misuse email IDs. We respect privacy.

© 2008 - 2017 sapnwnewbie. All rights reserved.