Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 331917

Summary: PermGen java.lang.OutOfMemoryError during tests
Product: [Eclipse Project] PDE Reporter: Andrew Niefer <aniefer>
Component: BuildAssignee: pde-build-inbox <pde-build-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, dean.t.roberts, john.arthorne, kim.moir, Michael_Rennie
Version: 3.7   
Target Milestone: 3.7 M6   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Andrew Niefer CLA 2010-12-06 10:50:45 EST
PDE/Build tests have started failing with Permgen errors.  There not been any changes in PDE/Build to prompt this.

There have been two perhaps relevant changes in p2 & ant:
p2 bug 329385 - [repository] Share StringPool for Composite Repositories 
ant bug 327769 - Support for directory based ant task libraries

The p2 bug is relevant because string interning goes into the permgen space.  The ant bug is relevant because there have been problems in the past with permgen around the ant class loaders, however, the ant changes have been in for a little while now and these exceptions are new.

Also of note is that the tests are apparently being run with the default permgen size, Kim says we can increase it by modifying our test.xml.
Comment 1 Andrew Niefer CLA 2010-12-08 11:00:48 EST
I have increased the memory limit in the tests for M4 by adding 
<property name="extraVMargs" value="-XX:MaxPermSize=256m" />
to the pde.build.tests/test.xml

I will leave this bug open to do a bit more investigation
Comment 2 Andrew Niefer CLA 2011-03-07 11:10:09 EST
I really think this is ultimately related to bug 130545, nearly every test case is a new AntRunner.
 
The test suite was split into two pieces and we haven't run out of memory since then.