Skip to content

Commit

Permalink
fix(build): Reduce Xmx and Xms (#4788) (#5082)
Browse files Browse the repository at this point in the history
Our container builds run on a machine with only 7.2 GB of memory;
while we do want to give a lot to the JVM we should leave a bit more
for the everything else.

I was able to succesfully build the containers with these settings,
so let's use them.

Co-authored-by: Eric Zimanyi <ezimanyi@google.com>
  • Loading branch information
mergify[bot] and ezimanyi committed Nov 6, 2020
1 parent b5991f4 commit f5a94ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile.compile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ MAINTAINER sig-platform@spinnaker.io
ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64
ENV JDK_18 /usr/lib/jvm/java-8-openjdk-amd64
ENV GRADLE_USER_HOME /workspace/.gradle
ENV GRADLE_OPTS "-Xmx6g -Xms6g"
ENV GRADLE_OPTS "-Xmx4g -Xms2g"
CMD ./gradlew --no-daemon -PenableCrossCompilerPlugin=true clouddriver-web:installDist -x test

0 comments on commit f5a94ed

Please sign in to comment.