Description of problem:
When trying to build Eclipse on ppc64 with the latest OpenJDK with a JIT enabled we're seeing out of memory situations again due to stack overflows.
To resolve this issue i had to increase the overall stack size of the JVM and add the MaxPermSize in the MAVEN_OPTS variable to the settings in the specfile:
export MAVEN_OPTS="-Xmx1000m -XX:MaxPermSize=256m -XX:CompileCommand=exclude,org/eclipse/tycho/core/osgitools/EquinoxResolver,newState
so basically increasing the overall stack size by 100MB and adding the MaxPermSize for maven specifically.
Version-Release number of selected component (if applicable):
eclipse-4.3.0-4.fc20 (http://ppc.koji.fedoraproject.org/koji/buildinfo?buildID=169706 last known working build for ppc64)
all on a Fedora 20 ppc64 machine with the latest updates.
Steps to Reproduce:
1. Try to build Eclipse with the above mentioned openjdk and eclipse version on a Fedora 20 ppc64 box
2. Check the build log for the stack overflow message at the end.
Eclipse fails to build due to stack overflow.
Eclipse should build without stack overflows :)
The info for the recommended sizes were found via some testing and googling for others that experienced the same issue with Java stack overflows. Another recommendation that was given there was to enable forking in maven which might be a more viable long term solution to the out of memory situations, but i haven't investigated that so far.
Thanks for the fix! I have pushed and updates with your suggestions and started builds: http://koji.fedoraproject.org/koji/buildinfo?buildID=495017
I'll close the bug once you have a successful build on PPC
Closing as there was a successful ppc build.