Eclipse堆空间(内存不足错误) [英] Eclipse heap space (out of memory error)

查看:702
本文介绍了Eclipse堆空间(内存不足错误)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在面临日食问题。最初我得到这个错误:'未处理的事件循环异常java堆空间',有时还会出现内存不足错误。



我以某种方式设法增加了堆大小至-Xmx990m。但还是不行。当我尝试增加堆大小时,在启动eclipse时,我收到错误无法创建虚拟机。



我试图在eclipse.ini文件中进行其他更改。当我更改XXMaxPermSize,它给我'permgen内存错误'。几次,我有不同的其他类型的错误,如未处理的事件循环异常GC开销限制超出和2-3更多不同的类型。请帮助我可以做的很棒!

解决方案

Jeshurun有关购买更多内存的评论实际上是相当准确的。 Eclipse是一个记忆HOG!在我的机器上,Eclipse正在使用2.1GB;不是开玩笑。如果你想要能够真正有效地使用Eclipse,具有很好的功能,那么你真的需要很多的内存。



说到这里,有办法使用Eclipse记忆力较少我发现最大的帮手是禁用所有验证器(在窗口>首选项>验证下勾选暂停所有验证器);只是禁用各个验证器不足够)。内存吸收的另一个常见来源是插件。如果您要保持当前的内存限制,我强烈建议您:


  1. 卸载您当前的Eclipse

  2. 下载Eclipse的核心/独立/纯Java版本(内置文件大小/无插件的内容)

  3. 尝试使用一段时间,并了解性能如何。如果没关系,请尝试安装您喜欢的插件,一次一个。不要安装多个,并给每一个试用一周或两个。

  4. 你可能会发现一些插件大大增加了内存使用量;不要使用这些(或者如果你这样做,获得更多的RAM)。

希望有所帮助。


I am facing memory issue in eclipse. Initially I was getting this error: ‘Unhandled event loop exception java heap space’ and also sometimes ‘An out of memory error has occured’.

I somehow managed to increase my heap size upto -Xmx990m. But still its not working. When I try to increase heap size beyond that, I am getting error ‘Unable to create virtual machine’ while starting eclipse.

I tried to make other changes in eclipse.ini file. When I change XXMaxPermSize, it gives me ‘permGen memory error’. For few times, I got different other kind of errors like ‘Unhandled event loop exception GC overhead limit exceeded’ and 2-3 more different types. Please help me what can be done that would be great!

解决方案

Jeshurun's somewhat flippant comment about buying more RAM is actually fairly accurate. Eclipse is a memory HOG! On my machine right now Eclipse is using 2.1GB; no joke. If you want to be able to use Eclipse really effectively, with all the great features, you really need lots of memory.

That being said, there are ways to use Eclipse with less memory. The biggest helper I've found is disabling ALL validators (check "Suspend all validators" under Window>Preferences>Validation; just disabling the individual ones doesn't help enough). Another common source of memory-suckage is plugins. If you're going to stay at your current memory limit, I strongly recommend that you:

  1. Uninstall your current Eclipse
  2. Download the core/standalone/just Java version of Eclipse (the one with least filesize/no plug-ins built-in)
  3. Try using just that for awhile, and see how the performance is. If it's ok, try installing the plug-ins you like, one at a time. Never install multiple, and give each one a week or two of trial.
  4. You'll likely find that some plug-ins dramatically increase memory usage; don't use those (or if you do, get more RAM).

Hope that helps.

这篇关于Eclipse堆空间(内存不足错误)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆