如何提高声纳Java堆大小? [英] How to increase Sonar java heap size?
本文介绍了如何提高声纳Java堆大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我分析有声纳相当大的项目。前几道去确定,但现在我得到的错误。是与时间机器和违规分析:
I am analyzing quite a large project with Sonar. The first few runs went OK but now I get error. Something to do with timemachine and violation analyzer:
java.lang.OutOfMemoryError: GC overhead limit exceeded
at
org.sonar.plugins.core.timemachine.ViolationTrackingDecorator.mapViolations(ViolationTrackingDecorator.java:131)
at org.sonar.plugins.core.timemachine.ViolationTrackingDecorator.decorate(ViolationTrackingDecorator.java:70)
我使用ANT执行声纳。我能以某种方式增加Java堆大小?
I execute Sonar using ANT. Can I increase the java heap size somehow?
推荐答案
所以你需要使用标准的ANT环境参数来设置JVM堆的声纳Ant任务执行的ANT的一部分。例如:
The Sonar ANT task executes as part of ANT so you need to set the JVM heap using the standard ANT environment parameter. For example:
export ANT_OPTS=-Xmx256m
这篇关于如何提高声纳Java堆大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文