Skip to content

Commit

Permalink
fix: jvm heap memory
Browse files Browse the repository at this point in the history
  • Loading branch information
myeongha committed Feb 24, 2025
1 parent a35850c commit ae01cf6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM openjdk:21-jdk-slim

ENV JAVA_OPTIONS="-Xms700m -Xmx1500m"

COPY build/libs/circle-on-0.0.1-SNAPSHOT.jar /app/circle-on.jar

ENTRYPOINT ["java", "-jar", "/app/circle-on.jar"]
ENTRYPOINT ["sh", "-c", "java $JAVA_OPTIONS -jar /app/circle-on.jar"]
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ services:
- REDIS_PORT=${REDIS_PORT}
- LOG_PATH=${LOG_PATH}
- TZ=Asia/Seoul
# command: ["sleep", "infinity"]
# entrypoint: ["java", "-XX:+UseContainerSupport", "-Xmx1638m", "-jar", "/app/circle-on.jar"]

prometheus:
image: prom/prometheus:latest
Expand Down

0 comments on commit ae01cf6

Please sign in to comment.