From fa692d25696c0f4560b6f20b30a42b62a2fd21dc Mon Sep 17 00:00:00 2001 From: Fedor Dudinsky Date: Thu, 11 Jul 2024 14:05:49 +0200 Subject: [PATCH] Fix OOM when running Keycloak in DevMode Fixes https://github.com/quarkusio/quarkus/issues/41813 --- .../oidc/deployment/devservices/keycloak/DevServicesConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/oidc/deployment/src/main/java/io/quarkus/oidc/deployment/devservices/keycloak/DevServicesConfig.java b/extensions/oidc/deployment/src/main/java/io/quarkus/oidc/deployment/devservices/keycloak/DevServicesConfig.java index 9f71002fb2e7fd..b62d6c69b12c34 100644 --- a/extensions/oidc/deployment/src/main/java/io/quarkus/oidc/deployment/devservices/keycloak/DevServicesConfig.java +++ b/extensions/oidc/deployment/src/main/java/io/quarkus/oidc/deployment/devservices/keycloak/DevServicesConfig.java @@ -110,7 +110,7 @@ public class DevServicesConfig { /** * The `JAVA_OPTS` passed to the keycloak JVM */ - @ConfigItem + @ConfigItem(defaultValue = "-XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90") public Optional javaOpts; /**