Eclipse Memory Analyzer (MAT) - Install Eclipse Memory Analyzer (MAT) in Eclipse

by
Jeremy Canfield |
Updated: April 11 2023
| Eclipse Memory Analyzer (MAT) articles
The Eclipse Memory Analyzer (MAT) can be installed in Eclipse, on Windows, or on Linux.
Here is how I install Eclipse Memory Analyzer in Eclipse.
- Go to Help > Install New Software.
- I typically just select "All Available Sites" and enter Memory Analyzer in search.
- Check mark Memory Analyzer and Memory Analyzer (Charts) [optional] and click Next.
- Click Next.
- Bullet I accept the term and select Finish.
- After the install has completed, select Restart Now.
To open the Memory Analzyer in Eclipse, select Window > Perspective > Open Perspective > Other > Memory Analysis > Open.
Then select File > Open Heap Dump and select a heap dump file. The heap dump file should end with the .hprof extension (e.g. java_pid3158.hprof).
Be aware that a large hprof file may cause Eclipse to run out of memory. If this occurs, you can updated the amount of memory allocated for Eclipse in the eclipse.ini file.
- -Xms = minimum heap
- -Xmx = maximum heap
-startup
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.551.v20171108-1834
-product
org.eclipse.epp.package.jee.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
C:\Program Files\Java\JDK8u352-B08\bin\javaw.exe
-vmargs
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Xms512m
-Xmx2048m
--add-modules=ALL-SYSTEM
Did you find this article helpful?
If so, consider buying me a coffee over at