Loading of dumps from the java process with larger heap size takes more time to load the dump and display the results in GUI mode. To ease the analysis of the larger dumps, Memory Analyzer has the option to use the tool in "Batch" mode which allows us to start the processing of dumps in non-GUI mode on higher-end boxes. It produces standard reports like Leak Suspects, System Overview, Top Components reports. MA generates the "index" files automatically when it parses the dump. We can copy these reports and index files along with the dump to our local machine and we can perform interactive analysis with GUI mode. This helps us to save time on loading and processing larger dumps.
Below is the sample command using which we can invoke MAT in batch mode
<JAVA_HOME\jre\bin\java -Dosgi.bundles=org.eclipse.mat.dtfj@4:start,org.eclipse.equinox.common@2:start,org.eclipse.update.configurator@3:start,org.eclipse.core.runtime@start -jar plugins\org.eclipse.equinox.launcher*.jar -consoleLog -application org.eclipse.mat.api.parse <Location_and_name_of_dump> <report_options>
report options can be
These option are for the default reports that we get when we run MAT in GUI mode.