mat下载界面
http://www.eclipse.org/mat/downloads.php
mac版下载地址
安装之后启动报错
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即可