How to Use Existing Eclipse MAT Indexes for Interactive Analysis

I am trying to use the Eclipse MAT (Memory Analysis Tool) to analyze rather large heap heaps (~ 2G). My laptop, unfortunately, has 32-bit Windows, and the MAT ends from the heap space @ 1.4G allocated by the heap. I managed to start the heap indexer from the command line on a large headless 64-bit field. However, I cannot convince MAT to import these index files from a directory on my laptop so that I can explore the heap interactively. All my attempts to load the heap (with index files next to it) led to MAT deciding to re-split the heap file instead of using existing indexes. Ideas?

+6
heap memory analysis eclipse-mat
source share
2 answers

You need to copy all the files that are present in this directory to your laptop. I have done this successfully many times. I run the analyzer 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 a heap dump and then open saved reports.

+2
source share

You just need to copy all files with one file name prefix to a new location. It's really that simple.

0
source share

All Articles