Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331917 - PermGen java.lang.OutOfMemoryError during tests
Summary: PermGen java.lang.OutOfMemoryError during tests
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Build (show other bugs)
Version: 3.7   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.7 M6   Edit
Assignee: pde-build-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-06 10:50 EST by Andrew Niefer CLA
Modified: 2011-03-07 11:10 EST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.