Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use existing Eclipse MAT indexes for interactive analysis

I am attempting to use Eclipse MAT (Memory Analysis Toolkit) to analyze some rather large heap dumps (~2G). My laptop unfortunately has 32bit Windows, and MAT runs out of heap space @ 1.4G allocated heap. I was successful in running the heap indexer from the command line on a large, headless 64bit box. However, I am unable to convince MAT to import these index files from a directory on my laptop so that I may investigate the heap interactively. All my attempts at loading the heap (with the index files alongside it) have resulted in MAT deciding to re-parse the heap file instead of using the existing indexes. Ideas?

like image 736
ShabbyDoo Avatar asked Mar 04 '10 19:03

ShabbyDoo


1 Answers

You need to copy all files which are present in that directory to your laptop. I've done this successfully many times. I run the analyser on the server using

/opt/mat/MemoryAnalyzer -consolelog -application org.eclipse.mat.api.parse "$@" org.eclipse.mat.api:suspects org.eclipse.mat.api:top_components

This allows me to open the heap dump and then open the stored reports.

like image 169
Robert Munteanu Avatar answered Nov 03 '22 22:11

Robert Munteanu