为的Cobertura Ant任务从摇篮运行增加PermGen的空间 [英] Increasing permgen space for Cobertura ant task running from Gradle
问题描述
我得到以下尝试运行的Cobertura作为我的摇篮构建的一部分。
I'm getting the following trying to run Cobertura as part of my Gradle build.
:cobertura
Instrumenting classes for Cobertura
Exception in thread "Test worker" java.lang.OutOfMemoryError: PermGen space
java.lang.OutOfMemoryError: PermGen space
我试过 DEFAULT_JVM_OPTS
/ -XX碰撞了起来:我gradle这个包装脚本MaxPermSize参数
,没有效果。有没有更直接的(有效)的方式来做到这一点?
I've tried bumping up DEFAULT_JVM_OPTS
/-XX:MaxPermSize
in my gradle wrapper script, to no effect. Is there a more direct (and effective) way to do this?
推荐答案
只为我工作的事情正在改变对我的Linux机器的.bashrc中有出口_JAVA_OPTIONS =' - XX:MaxPermSize参数=512米
证明这得到了由检测的gradle当我建立这个消息被证明:
拿起_JAVA_OPTIONS:-XX:MaxPermSize参数=512米
The only thing that worked for me was changing the .bashrc on my Linux box to have export _JAVA_OPTIONS='-XX:MaxPermSize=512m' Proof that this got detected by gradle when I built was shown with this message: Picked up _JAVA_OPTIONS: -XX:MaxPermSize=512m
这篇关于为的Cobertura Ant任务从摇篮运行增加PermGen的空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!