Description
Base docker image with OpenJDK 8 and MAT: dgroup/mat
By default the MAT v1.8.1.20180910
is used.
Run the MAT in order to parse the heap dump
docker run -it --rm -v "$PWD":/dumps -w /dumps \
dgroup/mat /mat/ParseHeapDump.sh \
<heap-dump>.hprof \
org.eclipse.mat.api:suspects \
org.eclipse.mat.api:overview \
org.eclipse.mat.api:top_components
Run the MAT and override the default MemoryAnalyzer.ini
settings"
- Define your own
MemoryAnalyzer.ini
- Pass custom settings to the docker container
docker run -it --rm -v "$PWD":/dumps \ -v "$PWD/MemoryAnalyzer.ini":/mat/MemoryAnalyzer.ini \ -w /dumps -m 5g \ dgroup/mat /mat/ParseHeapDump.sh \ <heap-dump>.hprof \ org.eclipse.mat.api:suspects \ org.eclipse.mat.api:overview \ org.eclipse.mat.api:top_components