diff --git a/Jenkinsfile b/Jenkinsfile index c3cc0efa745..52f0780adb5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -136,7 +136,7 @@ def slackNotif() { */ def mavenBuild(jdk, cmdline, mvnName, junitPublishDisabled) { def localRepo = ".repository" - def mavenOpts = '-Xms1g -Xmx6g -Djava.awt.headless=true' + def mavenOpts = '-Xms1g -Xmx4g -Djava.awt.headless=true' withMaven( maven: mvnName, diff --git a/pom.xml b/pom.xml index b32caefcaea..5b3715f08d7 100644 --- a/pom.xml +++ b/pom.xml @@ -664,7 +664,7 @@ ${surefire.rerunFailingTestsCount} 3600 - @{argLine} -Dfile.encoding=UTF-8 -Duser.language=en -Duser.region=US -showversion -Xmx1g -Xms1g -XX:+PrintGCDetails + @{argLine} -Dfile.encoding=UTF-8 -Duser.language=en -Duser.region=US -showversion -Xmx2g -Xms2g -XX:+PrintGCDetails false 1 true