Archive for August, 2022
macOS: Increase MAT (Eclipse Memory Analyser Tooling) Heap Space
by admin on Aug.11, 2022, under News
The Eclipse Memory Analyzer is a fast and feature-rich Java heap analyzer that helps you find memory leaks and reduce memory consumption. Use the Memory Analyzer to analyze productive heap dumps with hundreds of millions of objects, quickly calculate the retained sizes of objects, see who is preventing the Garbage Collector from collecting objects, run a report to automatically extract leak suspects.
It’s a great tool provided free of charge by the Eclipse Foundation and we use it whenever we’re dealing with heap dumps. Depending on your application you might have stumbled across the following error message unexpectedly when opening your heap dump, though:
An internal error occured during: “Parsing heap dump from java_pid1.hprof”.
Java heap space.
This is because MAT itself is running out of heap space. Luckily we may easily configure said limit in a config file:
/Applications/mat.app/Contents/Eclipse/MemoryAnalyzer.ini
Update the value of -Xmx8096m to a higher value and restart Eclipse Memory Analyzer.