|# 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 "$@"|
First see if the heap size defined in the
As a result an archive with the report in form of HTML files will be created. (Resulting files are usually located in the MAT directory if you have executed the application from that location).
Note: This will only create the suspects, overview and top components report. If you want other stuff or only one report (e.g. suspect) replace the report id from the