You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by "hanasaki@gmail.com" <ha...@gmail.com> on 2014/07/27 10:23:21 UTC

tomee 1.7.x branch OOME fail on build

Splitting this email to a new thread.
Appears to be build server environment related.


==
From: Andy Gumbrecht
Sent:  Saturday, July 26, 2014 6:47AM
To: dev@tomee.apache.org
Subject: Re: TomEE 1.7.0 blockers

I setup a Jenkins based build on an isolated new slave exposing OOME on 
builds (note: the past issues did not have OOME issues on build however 
were on a 16gig host vs current jenkins slave 2g).  What maven opt 
parameters for memory would you suggest?  Should these be set on the mvn 
command line or in the surefire plugin?  I noticed the pom.xml for 
bval-embedded provides -Xmx512m to surefire 2.17

Note: Switched openjdk 1.7.0_65 : 7u65-b17 64 bit linux
Failures before were with oracle 1.8u11 and 1.7u65




Re: tomee 1.7.x branch OOME fail on build

Posted by agumbrecht <ag...@tomitribe.com>.
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
    agumbrecht@tomitribe.com
    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.