退房蚂蚁内存不足的错误 [英] Out of memory error in ant

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

问题描述

我试图运行Ant任务,但是我得到以下错误:

I am trying to run ant task, however I get the following error:

[javadoc] javadoc: error - java.lang.OutOfMemoryError: Please increase memory.
[javadoc] For example, on the Sun Classic or HotSpot VMs, add the option -J-Xmx
[javadoc] such as -J-Xmx32m.
[javadoc] 1 error
[javadoc] 103 warnings

我曾尝试使用Google找到了我如何可以设置这个值,但我不能找到它。
我曾尝试

I have tried googling to find out how I can set this value, but I cannot find it. I have tried

<javadoc maxmemory="256m">

我曾尝试

export ANT_OPTS=-Xmx256m

但我仍然得到同样的异常。我试图增加值1024米witouth任何成功

but I still get the same exception. I have tried to increase the value to 1024m witouth any success

更新

我解决它。它无关很少的内存。这是在我的Javadoc生成的endeless循环。

I solved it. It had nothing to do with little memory. It was an endeless loop in my javadoc generation.

推荐答案

我解决它。

据无关很少的内存。这是在我的Javadoc生成的endeless循环。

It had nothing to do with little memory. It was an endeless loop in my javadoc generation.

有关蚂蚁设置更多内存的正确方法是使用
出口ANT_OPTS = -Xmx256m 在* nix。

The correct way of setting more memory for ant is by using export ANT_OPTS=-Xmx256m on *nix.

在Windows上遵循<一个href=\"http://superuser.com/questions/284342/what-are-path-and-other-environment-variables-and-how-can-i-set-or-use-them\">usual步骤设置环境变量。

On Windows follow the usual steps for setting environment variables.

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

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