How to run Eclipse memory analyzer on Mac os?
Asked Answered
S

8

29

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

Spontaneity answered 20/12, 2017 at 15:18 Comment(0)
M
69

Move mat.app to ./Applications solve my problems

Mccollum answered 10/4, 2018 at 7:16 Comment(2)
And also a funny one :)Giefer
Tried different solutions like adding -data but this is the only solution that worked for me.Arlettaarlette
I
13

This is a bug, you can run command:

1. cd mat.app/Contents/MacOS
2. ./MemoryAnalyzer 
Insert answered 27/6, 2018 at 9:49 Comment(2)
Apparently still a bugSunbreak
it works on my M1 pro, using MemoryAnalyzer-1.14.0.20230315-macosx.cocoa.x86_64.dmgEzraezri
B
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>
Bunni answered 20/12, 2017 at 15:33 Comment(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.Devinna
A
2
  • Find the MemoryAnalyzer.ini file .
  • Add the following content:
-vm
<your Java1.7 path>
Alfredoalfresco answered 9/3, 2019 at 3:32 Comment(3)
or path to the 'java' executable from an installed JDK8Austronesia
On MacOS, it worked for me when I add the java path with /bin suffixEldreeda
This didn't work for me, but export JAVA_HOME="/Users/matschaffer/.asdf/installs/java/oracle-17"; open /Applications/mat.app did.Onanism
T
1

One more solution is to

open mat.app --args -data ~/<your-folder>
Theory answered 8/10, 2020 at 18:44 Comment(0)
S
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.

Swipe answered 19/10, 2020 at 10:27 Comment(0)
I
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.

Infer answered 22/3, 2018 at 6:15 Comment(0)
P
0

adding a quick reference for people using sdkman,

$JAVA_HOME is set to

/Users/{yourusername}/.sdkman/candidates/java/current/

now modify the startup config for the program

nano /Applications/MemoryAnalyzer.app/Contents/Eclipse/MemoryAnalyzer.ini

add the following two separate lines before any vmargs

-vm
<the-value-of-your-java-home>/bin
Probity answered 21/3 at 0:35 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.