summaryrefslogtreecommitdiff
path: root/src/main/resources/application.properties
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2021-01-22 14:47:29 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2021-01-22 15:03:27 +0100
commitcc29e558886fdf072f26a798dc4684d59e95fdb6 (patch)
tree9711ba805007d4162d10a8138581f02c8e4cbf56 /src/main/resources/application.properties
parent0c0a461307c6cd4a9675d3d4305ce17f013dcec6 (diff)
Turn on JEP 346 (Promptly Return Unused Committed Memory from G1).
This tunes G1 so it performs a full GC and releases the memory reclaimed back to the OS once every 5 minutes. See: https://openjdk.java.net/jeps/346 Before: NAME CPU(cores) MEMORY(bytes) mulkcms2-857469cf-p9rvx 1m 428Mi After: NAME CPU(cores) MEMORY(bytes) mulkcms2-74d8c8f69-wvfz8 3m 337Mi Change-Id: I2f6272ad83665f9ee0810c435d0511fd8807697d
Diffstat (limited to 'src/main/resources/application.properties')
-rw-r--r--src/main/resources/application.properties1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
index 87f49c8..914f517 100644
--- a/src/main/resources/application.properties
+++ b/src/main/resources/application.properties
@@ -86,6 +86,7 @@ quarkus.container-image.registry = docker.benkard.de
quarkus.jib.base-jvm-image = azul/zulu-openjdk-alpine:15-jre
#quarkus.jib.jvm-arguments = -XX:+UseShenandoahGC,-XX:ShenandoahGCHeuristics=compact
+quarkus.jib.jvm-arguments = -XX:G1PeriodicGCInterval=300000,-XX:G1PeriodicGCSystemLoadThreshold=0
quarkus.native.container-runtime = docker