蚂蚁内存不足错误

蚂蚁内存不足错误

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

问题描述

我正在尝试运行 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

我尝试使用谷歌搜索来了解如何设置此值,但我找不到它.我试过了

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

但我仍然遇到相同的异常.我试图将值增加到 1024m 没有任何成功

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

更新

我解决了.这与小记忆无关.在我的 javadoc 生成中,这是一个无休止的循环.

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

推荐答案

我解决了.

这与内存不足无关.在我的 javadoc 生成中,这是一个无休止的循环.

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

为ant设置更多内存的正确方法是使用在 *nix 上导出 ANT_OPTS=-Xmx256m.

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

在 Windows 上遵循 设置环境变量的常用步骤.

On Windows follow the usual steps for setting environment variables.

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

08-04 05:07