diff --git a/sample-apps/java/springboot-main-service/build.gradle.kts b/sample-apps/java/springboot-main-service/build.gradle.kts index 5a34cbb38..abe12c2b0 100644 --- a/sample-apps/java/springboot-main-service/build.gradle.kts +++ b/sample-apps/java/springboot-main-service/build.gradle.kts @@ -67,4 +67,5 @@ jib { application { mainClass.set("com.amazon.sampleapp.FrontendService") + applicationDefaultJvmArgs = listOf("-XX:+UseG1GC") } diff --git a/sample-apps/java/springboot-remote-service/build.gradle.kts b/sample-apps/java/springboot-remote-service/build.gradle.kts index 2339e7699..86c867e2e 100644 --- a/sample-apps/java/springboot-remote-service/build.gradle.kts +++ b/sample-apps/java/springboot-remote-service/build.gradle.kts @@ -62,4 +62,5 @@ jib { application { mainClass.set("com.amazon.sampleapp.RemoteService") + applicationDefaultJvmArgs = listOf("-XX:+UseG1GC") } \ No newline at end of file