增加蚂蚁的记忆 [英] Increase memory for ant

查看:85
本文介绍了增加蚂蚁的记忆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个关于内存使用的问题. 我有8 GB的RAM,并且我的蚂蚁设置是这样的:

I have an issue about memory usage. I had 8 GB of RAM and I had my ant settings like this:

set ANT_OPTS=-Xmx512m -XX:MaxPermSize=2G

现在,我已经安装了16 GB的RAM,但是当我运行所有ant清理程序时,这将花费相同的时间进行编译.

Now, I have installed 16 GB of RAM but when I run an ant clean all, this take the same time to compile.

如何设置选项以增加内存和速度?我有Windows 7 64位和16 GB RAM.我使用Eclipse,但是我从cmd运行ant clean all和服务器Tomcat.

How I have to set the options to increase memory and speed? I have Windows 7 64bit and 16 GB RAM. I use Eclipse, but I run ant clean all and server Tomcat from the cmd.

推荐答案

您的配置很奇怪-PermGen的大小是Heap的四倍.也许是错字?试试这个:

you have strange configuration - PermGen size is four times bigger than a Heap. Maybe it is a typo? Try this:

set ANT_OPTS=-Xmx2G -XX:MaxPermSize=512m

但是与ant没有多大关系-大项目需要很长时间才能构建.不要忘记,此过程会消耗很多CPU(然后,使ant使用多个线程通过并行任务自定义运行时)或具有瓶颈(在这种情况下,请考虑使用SSD甚至是RAM drive)

But there is no much to do with ant - big project needs a long time to build. Do not forget, that this process can consume much CPU (then it's good idea to make ant use multiple threads by parallel tasks or custom runtime) or have HDD bottleneck (consider using SSD or even RAM drive in this case)

这篇关于增加蚂蚁的记忆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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