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???

Sammers
  • 1,038
  • 2
  • 8
  • 20

7 Answers7

69

Move mat.app to ./Applications solve my problems

Egos Zhang
  • 1,334
  • 10
  • 18
11

This is a bug, you can run command:

1. cd mat.app/Contents/MacOS
2. ./MemoryAnalyzer 
Chao Yi
  • 171
  • 1
  • 4
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>
Arnaud
  • 17,229
  • 3
  • 31
  • 44
  • 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 https://www.eclipse.org/mat/downloads.php 2. mkdir ~/.mat 3. cd /Applications/mat.app/Contents/MacOS 4. ./MemoryAnalyzer -data ~/.mat. – runamok Feb 02 '22 at 07:23
2
  • Find the MemoryAnalyzer.ini file .
  • Add the following content:
-vm
<your Java1.7 path>
koon
  • 61
  • 2
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.

user13762112
  • 401
  • 3
  • 7
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.

kunal saxena
  • 398
  • 1
  • 6
  • 13