Eclipse在Ant构建上用完了堆空间 [英] Eclipse runs out of heap space on ant build

查看:86
本文介绍了Eclipse在Ant构建上用完了堆空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ext-Myself和两个同事一直在从事GWT项目并在Eclipse中进行编码.该项目正在不断发展,我们正在招募一些新的开发人员来提供帮助.在他们开始工作之前,我要负责设置他们的工作站.按照基本的GWT设置指南(http://code.google.com/webtoolkit/usingeclipse.html)

ext-Myself and two co-workers have been working on a GWT project and coding in eclipse. The project is growing and we are bringing on several new developers to help out. I have been tasked with setting up their workstations before they start work. Our current systems all worked out of the box following the basic GWT set up guide (http://code.google.com/webtoolkit/usingeclipse.html)

在我的操作系统上,我没有更改eclipse为内存大小设置的任何默认值.

On my working system I have not changed any of the defaults that eclipse has set for memory size.

新系统将运行简单的启动程序项目,因此我知道已经设置了GWT.当我导入当前代码库时,我可以在本地运行该站点,而不会出现问题.当我尝试运行ant脚本时,我们必须构建项目并将其推送到开发服务器,新系统会抱怨:

The new system will run the simple starter projects, so I know that I have GWT set up. When I import our current code base I can run the site locally without issue. When I try and run the ant script that we have to build our project and push it out to our dev server the new system complains:

Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded

在新系统上,我已将eclipse.ini文件修改为,并设置了-Xmx1024M,并在窗口">首选项">"Java">下安装了-Xmx1024M,但均未解决此问题. (显示在此处: http://dinu.blog.com/2010/06/02/out -of-memory/)

On the new system I have modified the eclipse.ini file to and set -Xmx1024M and I have added -Xmx1024M under Window>Preferences>Java>Installed JREs neither of which have solved the problem. (shown here: http://dinu.blog.com/2010/06/02/out-of-memory/)

我尝试了32位和64位版本的eclipse,甚至尝试将已知的工作eclipse文件夹复制到新系统中而没有任何运气.有人有什么想法吗?

I have tried 32 and 64 bit versions of eclipse, and I have even tried just copying my known working eclipse folder onto the new system without any luck. Does anyone have any ideas?

推荐答案

我有同样的问题.我通过在终端窗口中的命令行使用ant来解决"或更好地避免.

I have the same problem. I "solved" or better avoid it by building with ant from the command line in a terminal window.

此处有人建议在其中添加fork = yes属性build.xml文件,并读取.

Here someone proposed adding a fork=yes attribute to the build.xml file, and reading this.

这篇关于Eclipse在Ant构建上用完了堆空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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