Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Memory Analyzer has no response after starting up

I downloaded a stand-alone Eclipse Memory Analyzer from the official site, intending to use it to open a hprof file to do some analysis work. However, the application seems to get stuck after starting up. I can do nothing but drag the window, as the figure shows below:enter image description here

The OS I’m using is macOS Sierra, the mat version is 1.6.1, and here is the MemoryAnalyzer.ini:

  -startup
    ../Eclipse/plugins/.    org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
-data
/Users/XXX/eclipse_data
--launcher.library
../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.300.v20150602-1417
-vm
/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/bin/java
-vmargs
-Xmx2g
-Dorg.eclipse.swt.internal.carbon.smallFonts
-XstartOnFirstThread

Can anyone give me some advice? Thanks a lot.

like image 359
Emanon Avatar asked Dec 29 '17 09:12

Emanon


People also ask

How do I start the memory analyzer in Eclipse?

Use the Eclipse Memory Analyzer You may need to refresh your project (F5 on the project). Double-click the file and select the Leak Suspects Report. The overview page allows you to start the analysis of the heap dump. The dominator tree gives quickly an overview of the used objects.

How do I open PHD in Eclipse memory Analyzer?

Restart Eclipse when prompted. Choose File -> Open Heap Dump and choose your . phd file. It should open in MAT and allow you to figure out who is using all that memory.

What is Eclipse memory Analyzer free?

The Eclipse Memory Analyzer is a fast and feature-rich Java heap analyzer that helps you find memory leaks and reduce memory consumption.


1 Answers

I had the same issue using jdk1.8.0_161.jdk

Then using an older JVM :

-vm
/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin

now it's working again.

My complete MemoryAnalyzer.ini:

-startup
../Eclipse/plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.library
../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.300.v20150602-1417
-vm
/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin
-data 
/Users/German/tmp/workspace_mat
-vmargs
-Xmx5g
-Dorg.eclipse.swt.internal.carbon.smallFonts
-XstartOnFirstThread

PD: I haven't tested it with an older jdk8 version. I remember, it used to work with older than version 161.

like image 160
devwebcl Avatar answered Oct 17 '22 23:10

devwebcl