Skip to content

Commit 4e25d25

Browse files
author
Dennis Labordus
authored
Merge pull request #107 from com-pas/increase_heap
Removed increased heap size from Dockerfile
2 parents 6729e8a + 41923ef commit 4e25d25

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/src/main/docker/Dockerfile.jvm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ RUN microdnf install curl ca-certificates ${JAVA_PACKAGE} \
4141
&& echo "securerandom.source=file:/dev/urandom" >> /etc/alternatives/jre/conf/security/java.security
4242

4343
# Configure the JAVA_OPTIONS, you can add -XshowSettings:vm to also display the heap size.
44-
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager -Xms256m -Xmx1024m"
44+
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
45+
ENV JAVA_MAX_MEM_RATIO="70"
4546
# We make four distinct layers so if there are application changes the library layers can be re-used
4647
COPY --chown=1001 target/quarkus-app/lib/ /deployments/lib/
4748
COPY --chown=1001 target/quarkus-app/*.jar /deployments/

app/src/main/docker/Dockerfile.legacy-jar

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ RUN microdnf install curl ca-certificates ${JAVA_PACKAGE} \
4141
&& echo "securerandom.source=file:/dev/urandom" >> /etc/alternatives/jre/conf/security/java.security
4242

4343
# Configure the JAVA_OPTIONS, you can add -XshowSettings:vm to also display the heap size.
44-
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager -Xms256m -Xmx1024m"
44+
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
45+
ENV JAVA_MAX_MEM_RATIO="70"
4546
COPY target/lib/* /deployments/lib/
4647
COPY target/*-runner.jar /deployments/app.jar
4748

0 commit comments

Comments
 (0)