运行Ant报Out of Memory错误

执行ant时报Out of Memory错误。

解决办法:

设置环境变量ANT_OPTS指定JVM使用的内存。

Bash:

% export ANT_OPTS=”-Xms128m -Xmx256m”

Windows cmd:

C:> set ANT_OPTS=”-Xms128m -Xmx256m”

0 Responses to “运行Ant报Out of Memory错误”


  • No Comments

Leave a Reply




This work by wolfg is licensed under a Attribution-Noncommercial-Share Alike 2.5 China Mainland.