I'll give you usual my command line parameters:
MAVEN_OPTS=-Xmx768m -XX:MaxPermSize=256M -XX:ReservedCodeCacheSize=64m
-Xss2048k
mvn -Dsurefire.useFile=false -DdisableXmlReport=true -ff
-DfailIfNoTests=false clean install
Where you set MAVEN_OPTS is really up to you, just make sure it's
set/exported before the call to mvn.
I set -Xss and -XX:ReservedCodeCacheSize pretty high because some of the
thread and code stacks can be pretty full during a build - Never set these
that high for the runtime.
Setting -XX:MaxPermSize=256M is the one to play with if you run out of
memory - But NOTE: This is NOT required for java8!
I really wouldn't play with surefire plugin settings per test - It's very
rare that you'll need that - You may want to define it globally in the
parent pom.
Andy.
-----
--
Andy Gumbrecht
http://www.tomitribe.com
[email protected]
https://twitter.com/AndyGeeDe
TomEE treibt Tomitribe ! | http://tomee.apache.org
--
View this message in context:
http://tomee-openejb.979440.n4.nabble.com/tomee-1-7-x-branch-OOME-fail-on-build-tp4670772p4670790.html
Sent from the TomEE Dev mailing list archive at Nabble.com.