From 831cc18ad6a729f02d8231b5a6110153a0a8480f Mon Sep 17 00:00:00 2001 From: Andrei Arlou Date: Fri, 8 Nov 2024 22:31:22 +0200 Subject: [PATCH] 4.x: Replace deprecated VM memory flags in docs for building container images (#8876) (#9479) --- docs/src/main/asciidoc/guides/jib.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/main/asciidoc/guides/jib.adoc b/docs/src/main/asciidoc/guides/jib.adoc index eb9ba05790f..022031c4bdc 100644 --- a/docs/src/main/asciidoc/guides/jib.adoc +++ b/docs/src/main/asciidoc/guides/jib.adoc @@ -72,9 +72,9 @@ Add the following plugin declaration to your pom.xml: -Djava.awt.headless=true -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap - -XX:InitialRAMFraction=2 - -XX:MinRAMFraction=2 - -XX:MaxRAMFraction=2 + -XX:InitialRAMPercentage=50 + -XX:MinRAMPercentage=50 + -XX:MaxRAMPercentage=50 -XX:+UseG1GC ${mainClass}