Eclipse 使用太多内存,最佳配置是什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6641303/
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
Eclipse is using too much memory and what is the best configuration?
提问by rjc
What I want is the lightest possible version eclipse so that it consumes as low memory as possible when running. Does any one know how to configure eclipse to be as light as possible?
我想要的是尽可能最轻的版本 eclipse,以便它在运行时消耗尽可能低的内存。有谁知道如何将 eclipse 配置为尽可能轻?
Currently I am using Eclipse STS but I want to ditch it because it uses average 1 GB memory by itself when not running my projects. I am using 64 bit linux platform.
目前我正在使用 Eclipse STS,但我想放弃它,因为它在不运行我的项目时自己平均使用 1 GB 内存。我正在使用 64 位 linux 平台。
I just do plain Java/Groovy/Grails and Scala web application development and also Javascript debugging HTML/CSS. I am not using any heavy weight application servers.
我只做普通的 Java/Groovy/Grails 和 Scala Web 应用程序开发以及 Javascript 调试 HTML/CSS。我没有使用任何重量级的应用程序服务器。
采纳答案by zacheusz
- remove all unnecessary plugins
- you can change -Xmx in eclipse ini
- 删除所有不必要的插件
- 您可以在 eclipse ini 中更改 -Xmx
look at this question: Getting a lightweight installation of Java Eclipse
回答by Jean-Philippe Pellet
The Scala plugin uses a lot of RAM. The recommended settings for Eclipse with the Scala IDE are described here:
Scala 插件使用大量 RAM。此处描述了带有 Scala IDE 的 Eclipse 的推荐设置:
回答by glarkou
If you are using Ubuntu, I observed a problem with some machines and Ubuntu 64bit causing the machines to consume a lot of RAM.
如果您使用的是 Ubuntu,我发现某些机器和 Ubuntu 64 位存在问题,导致机器消耗大量 RAM。