File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ RUN microdnf install curl ca-certificates ${JAVA_PACKAGE} \
41
41
&& echo "securerandom.source=file:/dev/urandom" >> /etc/alternatives/jre/conf/security/java.security
42
42
43
43
# 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"
45
46
# We make four distinct layers so if there are application changes the library layers can be re-used
46
47
COPY --chown=1001 target/quarkus-app/lib/ /deployments/lib/
47
48
COPY --chown=1001 target/quarkus-app/*.jar /deployments/
Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ RUN microdnf install curl ca-certificates ${JAVA_PACKAGE} \
41
41
&& echo "securerandom.source=file:/dev/urandom" >> /etc/alternatives/jre/conf/security/java.security
42
42
43
43
# 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"
45
46
COPY target/lib/* /deployments/lib/
46
47
COPY target/*-runner.jar /deployments/app.jar
47
48
You can’t perform that action at this time.
0 commit comments