I can confirm that running a multi-project build that invokes sonar on several 
sub-projects (in this case 5 for me) also fails with an OOME.  It fails once 
reaching the 3rd or 4th project it encounters -- cannot remember.

Invoking sonar individually on any of the sub-projects does not fail.

We were only testing out the sonar plugin and it's not currently part of our 
official build process, so I don't know when I'll get time to try to determine 
what's causing the underlying issue.

-Spencer

--- On Fri, 5/20/11, Peter Niederwieser <[email protected]> wrote:

From: Peter Niederwieser <[email protected]>
Subject: [gradle-user] Re: outofmemory error to execute sonar in 
multiple-project env
To: [email protected]
Date: Friday, May 20, 2011, 9:58 AM


Xiaojian Ao wrote:
> 
> It seems a bug in gradle ?
> 

Hard to say. Basically all we do is to call the Sonar API. And as far as I
can tell, we don't hold on to anything after a subproject has been analyzed.
I'll have to look at this in the profiler again.

In order to analyze the whole Gradle project with Sonar (which took about 90
minutes), I used the following memory settings:

export GRADLE_OPTS="-Xmx1G -XX:MaxPermSize=512m"

As far as I remember, -Xmx512m wasn't enough in this case.

--
Peter Niederwieser
Principal Engineer, Gradleware 
http://gradleware.com
Creator, Spock Framework 
http://spockframework.org
Blog: http://pniederw.wordpress.com
Twitter: @pniederw

--
View this message in context: 
http://gradle.1045684.n5.nabble.com/outofmemory-error-to-execute-sonar-in-multiple-project-env-tp4411892p4412648.html
Sent from the gradle-user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to