Skip to content

Commit

Permalink
Issue: Set default resource for builder pod
Browse files Browse the repository at this point in the history
In this I have limit the heap size to use only 75% of available memory. I have also set maximun and minimum heap sizes
  • Loading branch information
lakshayletsgo committed Jan 15, 2025
1 parent 3b7523a commit 00c293b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ ARG MAVEN_HOME="/usr/share/maven"
ARG MAVEN_DIST_URL="https://archive.apache.org/dist/maven/maven-3/${MAVEN_DEFAULT_VERSION}/binaries/apache-maven-${MAVEN_DEFAULT_VERSION}-bin.zip"
ARG MVNW_DIR="/usr/share/maven/mvnw/"
ARG MVN_REPO="/etc/maven/m2"
ARG MAVEN_OPTS=""
ARG MAVEN_OPTS="-Xmx512m -Xms256m -XX:MaxRAMPercentage=75.0"

ENV JAVA_OPTS="-XX:+UseContainerSupport -XX:MaxRAMPercentage=75.0 -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap"

USER 0

Expand Down

0 comments on commit 00c293b

Please sign in to comment.