Skip to content

Commit 77023fc

Browse files
committed
settings: memory 제한 더 타이트하게 걸음
- 한 서버에 4개의 어플리케이션을 돌려야 하는 관계로... 제한을 두었습니다.
1 parent ef3e958 commit 77023fc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ EXPOSE 8080
77

88
ENTRYPOINT ["java",
99
"-Xms256m",
10-
"-Xmx512m",
10+
"-Xmx384m",
1111
"-XX:+HeapDumpOnOutOfMemoryError",
1212
"-XX:HeapDumpPath=/tmp/heapdump.hprof",
1313
"-XX:OnOutOfMemoryError='kill -9%p'",

Dockerfile.prod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ EXPOSE 8080
77

88
ENTRYPOINT ["java",
99
"-Xms256m",
10-
"-Xmx512m",
10+
"-Xmx384m",
1111
"-XX:+HeapDumpOnOutOfMemoryError",
1212
"-XX:HeapDumpPath=/tmp/heapdump.hprof",
1313
"-XX:OnOutOfMemoryError='kill -9%p'",
14-
"-Dspring.profiles.active=dev",
14+
"-Dspring.profiles.active=prod",
1515
"-jar", "server.jar"]

0 commit comments

Comments
 (0)