大叔经验分享(129)mac下启动MAT报错

mat下载界面

http://www.eclipse.org/mat/downloads.php

mac版下载地址

http://www.eclipse.org/downloads/download.php?file=/mat/1.11.0/rcp/MemoryAnalyzer-1.11.0.20201202-macosx.cocoa.x86_64.dmg&mirror_id=1142

安装之后启动报错

Failed to create the Java Virtual Machine

mat中的eclipse.ini配置路径如下

cat /Applications/mat.app/Contents/Eclipse/MemoryAnalyzer.ini
-startup
../Eclipse/plugins/org.eclipse.equinox.launcher_1.5.700.v20200207-2156.jar
--launcher.library
../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.1100.v20190907-0426
-vmargs
-Xmx1024m
-Dorg.eclipse.swt.internal.carbon.smallFonts
-XstartOnFirstThread

改动

增加
-vm
/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/bin
同时增大-Xmx即可

posted @ 2021-06-10 10:39  匠人先生  阅读(736)  评论(0编辑  收藏  举报