Skip to content

Latest commit

 

History

History
35 lines (31 loc) · 1.55 KB

readme.md

File metadata and controls

35 lines (31 loc) · 1.55 KB

Description

Commit activity License: MIT 0pdd

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"

  1. Define your own MemoryAnalyzer.ini
  2. 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