diff --git a/api-gateway/build.gradle.kts b/api-gateway/build.gradle.kts index e271149..e23a53f 100644 --- a/api-gateway/build.gradle.kts +++ b/api-gateway/build.gradle.kts @@ -73,8 +73,10 @@ jib { "-XX:+UnlockExperimentalVMOptions", "-XX:+UseContainerSupport", "-XX:+UseG1GC", - "-XX:InitialHeapSize=1g", - "-XX:MaxHeapSize=1g", + "-Xms1500M", + "-Xmx3G", + "-XX:MaxRAMPercentage=80", + "-XX:MaxGCPauseMillis=200", "-XX:+DisableExplicitGC", // System.gc() 방어 "-server", ) diff --git a/photo-service/build.gradle.kts b/photo-service/build.gradle.kts index cda793e..0b5474c 100644 --- a/photo-service/build.gradle.kts +++ b/photo-service/build.gradle.kts @@ -70,8 +70,10 @@ jib { "-XX:+UnlockExperimentalVMOptions", "-XX:+UseContainerSupport", "-XX:+UseG1GC", - "-XX:InitialHeapSize=1g", - "-XX:MaxHeapSize=1g", + "-Xms1500M", + "-Xmx3G", + "-XX:MaxRAMPercentage=80", + "-XX:MaxGCPauseMillis=200", "-XX:+DisableExplicitGC", // System.gc() 방어 "-server", ) diff --git a/user-service/build.gradle.kts b/user-service/build.gradle.kts index caa2d23..e88d69c 100644 --- a/user-service/build.gradle.kts +++ b/user-service/build.gradle.kts @@ -88,8 +88,10 @@ jib { "-XX:+UnlockExperimentalVMOptions", "-XX:+UseContainerSupport", "-XX:+UseG1GC", - "-XX:InitialHeapSize=1g", - "-XX:MaxHeapSize=1g", + "-Xms1500M", + "-Xmx3G", + "-XX:MaxRAMPercentage=80", + "-XX:MaxGCPauseMillis=200", "-XX:+DisableExplicitGC", // System.gc() 방어 "-server", )