From 93f41d98101e7a84a8de585fb56d2b32ed68920d Mon Sep 17 00:00:00 2001 From: Zhou Date: Thu, 21 Nov 2024 14:57:27 -0800 Subject: [PATCH] use g1gc --- sample-apps/java/springboot-main-service/build.gradle.kts | 1 + sample-apps/java/springboot-remote-service/build.gradle.kts | 1 + 2 files changed, 2 insertions(+) diff --git a/sample-apps/java/springboot-main-service/build.gradle.kts b/sample-apps/java/springboot-main-service/build.gradle.kts index 5a34cbb38..e2dab452f 100644 --- a/sample-apps/java/springboot-main-service/build.gradle.kts +++ b/sample-apps/java/springboot-main-service/build.gradle.kts @@ -61,6 +61,7 @@ jib { } container { mainClass = "com.amazon.sampleapp.FrontendService" + applicationDefaultJvmArgs = listOf("-XX:+UseG1GC") ports = listOf("8080") } } diff --git a/sample-apps/java/springboot-remote-service/build.gradle.kts b/sample-apps/java/springboot-remote-service/build.gradle.kts index 2339e7699..36fd56bfd 100644 --- a/sample-apps/java/springboot-remote-service/build.gradle.kts +++ b/sample-apps/java/springboot-remote-service/build.gradle.kts @@ -56,6 +56,7 @@ jib { } container { mainClass = "com.amazon.sampleapp.RemoteService" + applicationDefaultJvmArgs = listOf("-XX:+UseG1GC") ports = listOf("8080") } }