如何在 Mac 操作系统上运行 Eclipse 内存分析器?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/47909239/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to run Eclipse memory analyzer on Mac os?
提问by Sammers
I have some issues with running Eclipse memory analyzer on my laptop.
我在笔记本电脑上运行 Eclipse 内存分析器时遇到了一些问题。
This happen when i have just downloaded(from the place) and executed application:
当我刚刚下载(从地方)并执行应用程序时会发生这种情况:
And i can't figure out what is the cause of problem. Can someone help me???
我无法弄清楚问题的原因是什么。有人能帮我吗???
回答by Egos Zhang
Move mat.app to ./Applications
solve my problems
移动 mat.app 来./Applications
解决我的问题
回答by Arnaud
It looks like a permission problem with the default directory.
看起来像默认目录的权限问题。
From this discussion : Memory Analyzer ? Setting up workspace directory?.
从这个讨论:内存分析器?设置工作区目录?.
It is indicated that you should edit your MemoryAnalyzer.inifile, and add those lines (on two separate lines, and before the vm arguments), replacing the second with the path where you want the MemoryAnalyzer to write its content:
这表明您应该编辑您的MemoryAnalyzer.ini文件,并添加这些行(在两个单独的行上,并且在 vm 参数之前),将第二行替换为您希望 MemoryAnalyzer 写入其内容的路径:
-data
<desired path of your working directory>
回答by Chao Yi
This is a bug, you can run command:
这是一个错误,您可以运行命令:
1. cd mat.app/Contents/MacOS
2. ./MemoryAnalyzer
回答by koon
- Find the
MemoryAnalyzer.ini
file . - Add the following content:
- 找到
MemoryAnalyzer.ini
文件。 - 添加以下内容:
-vm
<your Java1.7 path>
回答by kunal saxena
I was having issue running MAT(Eclipse memory analyzer) on Mac. So I have tried installing "Eclipse Memory Analyzer" plugin in Sts that I use, it worked.
我在 Mac 上运行 MAT(Eclipse 内存分析器)时遇到问题。所以我尝试在我使用的 Sts 中安装“Eclipse Memory Analyzer”插件,它起作用了。
You can also install MAT as plugin in Eclipse/STS that you use already.
您还可以将 MAT 作为插件安装在您已经使用的 Eclipse/STS 中。