【随手记录】关于调整MAT配置

 

在用MAT分析内存问题时候,报错内存不足

An internal error occurred during: "Parsing heap dump from '/seata_logs/java_heapdump.hprof'".
Java heap space

对于Mac系统下可以在路径/Applications/mat.app/Contents/Eclipse/ 找到配置文件MemoryAnalyzer.ini 修改内存大小:

-startup
../Eclipse/plugins/org.eclipse.equinox.launcher_1.5.0.v20180512-1130.jar
--launcher.library
../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.700.v20180518-1200
-vmargs
-Xmx4096m
-Dorg.eclipse.swt.internal.carbon.smallFonts
-XstartOnFirstThread

 

posted @ 2020-11-30 10:35  空知大仙人  阅读(717)  评论(0编辑  收藏  举报