From: Andrea Aime (JIRA) <jira@co...> - 2009-04-25 21:13:59
Build OOM's on Java 6
Issue Type: Bug
Affects Versions: 2.5.4
Reporter: Andrea Aime
Fix For: 2.5.5
The build on Java 6u13 on Linux (with the server jvm enabled by default) repeatedly fails with OOM in the compiler.
I don't know exactly why this is not happening with java 5, but regardless, it's not difficult to imagine what's putting pressure on the JVM: the javac compiler is used embedded in the maven JVM, each module in GeoTools has a rich set of dependencies, classloading continues to push new classes in the permanent generation that are never garbage collected (the only collector that can garbage collect classes is the CMS one, and even in that case, the class gc has to be activated explicitly).
Forcing Maven to run javac in a separate process, started for each module, relieves this pressure and allows the buld to complete successfully. It also seems faster, probably due to the GC pressure in the permanent generation even in java5.
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
Get latest updates about Open Source Projects, Conferences and News.