On 04/03/2011, at 4:58 PM, Niclas Hedhman wrote:

> Qi4j runs out of memory if using the default memory settings.
> Especially the PermGen space is required to knock up a lot. So, I
> captured a "gradle clean build", and during the test phase there is a
> long slope, near linear increasing. It seems to suggest a memory leak
> in Gradle's test execution, OR in whatever Gradle uses to spawn the
> tests.
> 
> 
> The attached screen shots of JConsole shows settings of;
> 
> JAVA_OPTS="$JAVA_OPTS -Xmx512m -Xms512m -XX:MaxPermSize=256m"
> 
> JAVA_OPTS="$JAVA_OPTS -Xmx1024m -Xms1024m -XX:MaxPermSize=512m"
> 
> respectively.
> 
> I have no clue how to tackle this, but IMHO it is a massive problem
> for enterprise deployments since there are massive test suites, that
> should not require 20GB of RAM to run. ;-)
> 
> So, I hope these attachments highlights the problem enough for someone
> to go, "OMG, need to fix this..."

Absolutely. I'm just looking at this now. Let's see what the profiler reveals...


--
Adam Murdoch
Gradle Developer
http://www.gradle.org
Co-Founder and VP of Engineering, Gradleware Inc. - Gradle Training, Support, 
Consulting
http://www.gradleware.com

Reply via email to