-
-
Save aelkz/baf9a8742562465dc67f7a95f75ff930 to your computer and use it in GitHub Desktop.
MAT headless mode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 "$@" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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