28

I have some issues with running Eclipse memory analyzer on my laptop.

This happen when i have just downloaded(from the place) and executed application:

enter image description here

enter image description here

And i can't figure out what is the cause of problem. Can someone help me???

7 Answers 7

69

Move mat.app to ./Applications solve my problems

2
  • 1
    And also a funny one :)
    – Sobvan
    Sep 19, 2018 at 14:16
  • 1
    Tried different solutions like adding -data but this is the only solution that worked for me. Dec 4, 2018 at 18:08
12

This is a bug, you can run command:

1. cd mat.app/Contents/MacOS
2. ./MemoryAnalyzer 
2
  • 1
    Apparently still a bug
    – mjj1409
    Jan 12 at 18:37
  • it works on my M1 pro, using MemoryAnalyzer-1.14.0.20230315-macosx.cocoa.x86_64.dmg
    – SGiux
    Sep 11 at 16:10
9

It looks like a permission problem with the default directory.

From this discussion : Memory Analyzer » Setting up workspace directory?.

It is indicated that you should edit your MemoryAnalyzer.ini file, and add those lines (on two separate lines, and before the vm arguments), replacing the second with the path where you want the MemoryAnalyzer to write its content:

-data
<desired path of your working directory>
1
  • 1
    This worked for me because I have corporate nanny-ware installed that prevents me from altering ini files, Info.plist, etc. So: 1. download and install eclipse.org/mat/downloads.php 2. mkdir ~/.mat 3. cd /Applications/mat.app/Contents/MacOS 4. ./MemoryAnalyzer -data ~/.mat.
    – runamok
    Feb 2, 2022 at 7:23
2
  • Find the MemoryAnalyzer.ini file .
  • Add the following content:
-vm
<your Java1.7 path>
3
  • or path to the 'java' executable from an installed JDK8
    – Jim C
    Jun 11, 2019 at 19:05
  • On MacOS, it worked for me when I add the java path with /bin suffix
    – ali
    Mar 5, 2022 at 13:54
  • This didn't work for me, but export JAVA_HOME="/Users/matschaffer/.asdf/installs/java/oracle-17"; open /Applications/mat.app did. May 18, 2022 at 4:35
1

One more solution is to

open mat.app --args -data ~/<your-folder>
1

Does the latest Eclipse Memory Analyzer snapshot build work better for you? This is a signed and notarized dmg not a zip so might be easier to install.

0

I was having issue running MAT(Eclipse memory analyzer) on Mac. So I have tried installing "Eclipse Memory Analyzer" plugin in Sts that I use, it worked.

You can also install MAT as plugin in Eclipse/STS that you use already.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.