All Projects → jfrog → auto-mat

jfrog / auto-mat

Licence: Apache-2.0 license
A docker container to generate heap dump reports and indexes for eclipse MAT

Programming Languages

java
68154 projects - #9 most used programming language
shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to auto-mat

Emma
Emma Memory and Mapfile Analyser
Stars: ✭ 21 (+5%)
Mutual labels:  memory-analysis, memory-analyzer
Management
Management Endpoints used to allow insight into your applications
Stars: ✭ 31 (+55%)
Mutual labels:  heap-dump
kar98k public
pwn & ctf tools for windows
Stars: ✭ 24 (+20%)
Mutual labels:  memory-analysis
SCAF
A Speculation-Aware Collaborative Dependence Analysis Framework
Stars: ✭ 25 (+25%)
Mutual labels:  memory-analysis
kokkos-tools
Kokkos C++ Performance Portability Programming EcoSystem: Profiling and Debugging Tools
Stars: ✭ 52 (+160%)
Mutual labels:  memory-analysis
ngx debug pool
get memory usage of nginx memory pool
Stars: ✭ 16 (-20%)
Mutual labels:  memory-analysis
nadbg
👀Dynamic memory watcher/tracer/analyzer for CTF pwn
Stars: ✭ 51 (+155%)
Mutual labels:  memory-analysis
Koom
KOOM is an OOM killer on mobile platform by Kwai.
Stars: ✭ 2,247 (+11135%)
Mutual labels:  heap-dump
hprof-slurp
JVM heap dump analyzer
Stars: ✭ 65 (+225%)
Mutual labels:  heap-dump

Download

What is auto-mat?

Auto-mat is a docker container that allows you to analyse a Java heap dump from the commandline without any GUI involved. You can get html reports directly from the commandline.

How to run?

All you need is Docker installed on your machine.

cd to the location of your heap dump file, then: docker run --mount src=$(pwd),target=/data,type=bind -it docker.bintray.io/jfrog/auto-mat <dump filename> <heap size for mat> <reports>

dump filename - hprof heap dump file name

heap size for mat - how much memory to consume for this process e.g (5g)

reports - a comma separated list of the following: suspects, overview, top_components. If empty no reports will be generated. You probably want the suspects.

Example:

docker run -it --mount src=$(pwd),target=/data,type=bind docker.bintray.io/jfrog/auto-mat heap1.hprof 11g suspects,overview

What problem does it solve?

Analyzing large heap dumps is a long process which needs a lot of computing resources. Eclipse Memory Analyzer Tool (http://www.eclipse.org/mat/downloads.php) is GUI based tool to analyze heap dumps. It takes a lot of time to run an analysis for the first time with MAT and it consumes a lot of compute power, however when running for the second time it is fast, thats because MAT keeps indexes locally on the running machine.

Auto-mat can help with that because it can let you run the analysis on any remote machine that has docker installed. Then you can copy the output to your local machine, run MAT and open the heap dump. Auto-mat will also generate HTML reports which might save you the effort of running MAT.

How to build:

docker build . -t auto-mat:<tag name>

How it works?

This is a simple docker wrapper for tools that came from eclipse MAT. Eclipse MAT exposes command line tool to generate indexes and reports.

Credits

This tool uses:

ubuntu:18.04 docker image https://hub.docker.com/_/ubuntu

eclipse mat project https://www.eclipse.org/mat/

Open jdk https://openjdk.java.net/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].