Skip to content

Commit 4240f42

Browse files
committed
fix: JVM 메모리 설정 수정으로 OOM 문제 해결
1 parent a590913 commit 4240f42

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

Dockerfile

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@ HEALTHCHECK --interval=30s --timeout=3s --start-period=40s --retries=3 \
4141
CMD wget --no-verbose --tries=1 --spider http://localhost:8080/actuator/health || exit 1
4242

4343
# 실행
44-
ENTRYPOINT ["java", \
45-
"-XX:+UseContainerSupport", \
46-
"-Xms128m", \
47-
"-Xmx256m", \
48-
"-Duser.timezone=Asia/Seoul", \
49-
"-Djava.security.egd=file:/dev/./urandom", \
50-
"-jar", \
51-
"app.jar"]
44+
ENTRYPOINT ["java",
45+
"-XX:+UseContainerSupport",
46+
"-XX:MaxRAMPercentage=60.0",
47+
"-XX:InitialRAMPercentage=40.0",
48+
"-Xss512k",
49+
"-Duser.timezone=Asia/Seoul",
50+
"-Djava.security.egd=file:/dev/./urandom",
51+
"-jar",
52+
"app.jar"
53+
]

0 commit comments

Comments
 (0)