java – Eclipse Memory Analyzer在启动后没有响应

前端之家收集整理的这篇文章主要介绍了java – Eclipse Memory Analyzer在启动后没有响应前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

我从官方网站下载了一个独立的Eclipse Memory Analyzer,打算用它来打开一个hprof文件来做一些分析工作.但是,应用程序似乎在启动后卡住了.我只能拖动窗口,如下图所示:

enter image description here

我正在使用的操作系统是macOS Sierra,mat版本是1.6.1,这里是MemoryAnalyzer.ini:

  1. -startup
  2. ../Eclipse/plugins/. org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
  3. -data
  4. /Users/XXX/eclipse_data
  5. --launcher.library
  6. ../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.300.v20150602-1417
  7. -vm
  8. /Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/bin/java
  9. -vmargs
  10. -Xmx2g
  11. -Dorg.eclipse.swt.internal.carbon.smallFonts
  12. -XstartOnFirstThread

谁能给我一些建议?非常感谢.

最佳答案
我使用jdk1.8.0_161.jdk遇到了同样的问题

然后使用较旧的JVM:

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

现在它再次运作.

我完整的MemoryAnalyzer.ini:

  1. -startup
  2. ../Eclipse/plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
  3. --launcher.library
  4. ../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.300.v20150602-1417
  5. -vm
  6. /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin
  7. -data
  8. /Users/German/tmp/workspace_mat
  9. -vmargs
  10. -Xmx5g
  11. -Dorg.eclipse.swt.internal.carbon.smallFonts
  12. -XstartOnFirstThread

PD:我没有使用较旧的jdk8版本进行测试.我记得,它曾经使用旧版本161.

猜你在找的Java相关文章