Since there is no error to run sonar individually to each subproject, can we change the way that gradle run sonar for multiple projects?
We can start a jvm and run sonar for one project, when finished we can exist the jvm and restart a new jvm to run sonar for next subproject.Running Sonar in one subjuect is not dependent any other subproject, so I think this is a simple way to work around this issue. How about you ? Sky Ao On Fri, May 20, 2011 at 10:30 PM, Spencer Allain <spencer_all...@yahoo.com>wrote: > 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 <pnied...@gmail.com>* wrote: > > > From: Peter Niederwieser <pnied...@gmail.com> > Subject: [gradle-user] Re: outofmemory error to execute sonar in > multiple-project env > To: user@gradle.codehaus.org > 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 > > >