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:
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.
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.
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.
The Eclipse Memory Analyzer is a fast and feature-rich Java heap analyzer that helps you find memory leaks and reduce memory consumption.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With