1.打开MAT弹出报错日志
2.分析报错日志
sh-3.2# cat /Users/ifeng/.eclipse/394168535_macosx_cocoa_x86_64/configuration/1575430222030.log
!SESSION 2019-12-04 11:30:21.894 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_131
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=zh_CN
Framework arguments: -keyring /Users/ifeng/.eclipse_keyring
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -data /Users/ifeng/Documents/mat -keyring /Users/ifeng/.eclipse_keyring
!ENTRY org.eclipse.osgi 4 0 2019-12-04 11:30:25.992
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: The platform metadata area could not be written: /Users/ifeng/Documents/mat/.metadata. By default the platform writes its content
under the current working directory when the platform is launched.&n

在Mac OS 10.13.5上使用MAT(Eclipse Memory Analyzer Version 1.8.0)时遇到打开异常,错误日志显示工作路径与启动路径相同。解决方案是修改MemoryAnalyzer.ini文件,添加-data参数指定不同内容区域,例如'/Users/ifeng/Documents/mat'。确保指定路径存在且具有相应权限,避免以root用户身份操作。
最低0.47元/天 解锁文章
1358

被折叠的 条评论
为什么被折叠?



