From d4cc50f62279dc4d607cd05c16de480a76f05880 Mon Sep 17 00:00:00 2001 From: Allen Wittenauer Date: Thu, 1 Mar 2018 12:53:19 -0800 Subject: [PATCH] HADOOP-15279. increase maven heap size recommendations Signed-off-by: Jason Lowe Signed-off-by: Chris Douglas --- BUILDING.txt | 4 ++-- dev-support/docker/Dockerfile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BUILDING.txt b/BUILDING.txt index dec3011f81..6c266e5cb3 100644 --- a/BUILDING.txt +++ b/BUILDING.txt @@ -331,10 +331,10 @@ If the build process fails with an out of memory error, you should be able to fi it by increasing the memory used by maven which can be done via the environment variable MAVEN_OPTS. -Here is an example setting to allocate between 256 MB and 1 GB of heap space to +Here is an example setting to allocate between 256 MB and 1.5 GB of heap space to Maven -export MAVEN_OPTS="-Xms256m -Xmx1g" +export MAVEN_OPTS="-Xms256m -Xmx1536m" ---------------------------------------------------------------------------------- diff --git a/dev-support/docker/Dockerfile b/dev-support/docker/Dockerfile index bbc3e1fb77..6d05fe139f 100644 --- a/dev-support/docker/Dockerfile +++ b/dev-support/docker/Dockerfile @@ -173,7 +173,7 @@ RUN apt-get -y install nodejs && \ ### # Avoid out of memory errors in builds ### -ENV MAVEN_OPTS -Xms256m -Xmx1g +ENV MAVEN_OPTS -Xms256m -Xmx1536m ###