eclipse与Android sdk,ERROR:Java堆空间 [英] eclipse with Android sdk, ERROR: Java heap space

查看:133
本文介绍了eclipse与Android sdk,ERROR:Java堆空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我在eclipse里面的应用程序中遇到问题,在使用xml文件时显示下一个消息:

So lately I'm having a problem while working in my apps inside eclipse the next message shows up while working with xml files:

ERROR: 'Java heap space'

我已经阅读了在eclipse.ini里面增加一个尝试归档:

I have read an try increasing inside the eclipse.ini file the:

-vmargs
-Xmx40m
-Xmx512m

to:

-vmargs
-Xmx512m
-Xmx1024m 

但它会比后和小时工作一段时间或者它会给我同样的错误,我正在一个MacBook空气与4gb ram。
我有
Eclipse SDK
版本:3.7.2
构建ID:M20120208-0800
,我刚刚更新,所以我不知道是否是为什么要这样做,这就是我的eclipse.ini现在看起来如何:

but it will work for a while than after and hour or so it will give me the same error, I'm working in a MacBook air with 4gb ram. I have Eclipse SDK Version: 3.7.2 Build id: M20120208-0800 and I just updated it, so I don't know if that is why is acting up this way, this is how my eclipse.ini looks right now:

-startup
../../../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.101.v20120109-1504
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Xmx512m
-Xmx1024m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts

我还能做什么解决这个问题?任何帮助真的很感激。感谢提前。

what else can I do to fix this? any help is really appreciated. thanks in advance.

推荐答案

尝试这个

在Run->运行配置找到您已经运行的类的名称,选择它,单击参数选项卡,然后添加:

In Run->Run Configuration find the Name of the class you have been running, select it, click the Arguments tab then add:

  -Xms512M -Xmx1524M

到VM参数部分

很少有用的链接

Eclipse的最佳JVM设置是什么?

错误java堆大小在Eclipse Android中?

编辑:

您的eclipse.ini设置只有在您更改以下内容:

Your eclipse.ini settings will take effect only if you change following:

运行 - >外部工具 - >外部工具

Run -> External Tools -> External Tool

配置。转到你使用的配置,在jre tab -select选项下

Configurations. go to configuration that u use, under jre tab -select option

在工作区中运行相同的JRE。

Run in same JRE in workspace.

这篇关于eclipse与Android sdk,ERROR:Java堆空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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