Skip to content

Instantly share code, notes, and snippets.

@aelkz
Forked from mrbuk/ParseHeapDump.sh
Created June 2, 2019 13:11
Show Gist options
  • Save aelkz/baf9a8742562465dc67f7a95f75ff930 to your computer and use it in GitHub Desktop.
Save aelkz/baf9a8742562465dc67f7a95f75ff930 to your computer and use it in GitHub Desktop.
MAT headless mode
#!/bin/sh
#
# This script parses a heap dump.
#
# Usage: ParseHeapDump.sh <path/to/dump.hprof> [report]*
#
# The leak report has the id org.eclipse.mat.api:suspects
# The top component report has the id org.eclipse.mat.api:top_components
#
./MemoryAnalyzer -consolelog -application org.eclipse.mat.api.parse "$@"
#!/bin/bash
#
# run with './suspect_report.sh path_to_heapdump'
#
nohup ./ParseHeapDump.sh $1 org.eclipse.mat.api:suspects org.eclipse.mat.api:overview org.eclipse.mat.api:top_components -vmargs -Xmx96g -XX:-UseGCOverheadLimit > mat_report.out &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment