Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[config] #188 컨테이너의 최대 메모리를 1.5GB로 수정 #189

Merged
merged 2 commits into from
Feb 12, 2025

Conversation

jj0526
Copy link
Contributor

@jj0526 jj0526 commented Feb 6, 2025

개요

PR 유형

어떤 변경 사항이 있나요?

  • 새로운 기능 추가
  • 버그 수정
  • CSS 등 사용자 UI 디자인 변경
  • 코드에 영향을 주지 않는 변경사항(오타 수정, 탭 사이즈 변경, 변수명 변경)
  • 코드 리팩토링
  • 주석 추가 및 수정
  • 문서 수정
  • 테스트 추가, 테스트 리팩토링
  • 빌드 부분 혹은 패키지 매니저 수정
  • 파일 혹은 폴더명 수정
  • 파일 혹은 폴더 삭제

PR Checklist

PR이 다음 요구 사항을 충족하는지 확인하세요.

  • 커밋 메시지 컨벤션에 맞게 작성했습니다.
  • 변경 사항에 대한 테스트를 했습니다.(버그 수정/기능에 대한 테스트).

📣 To Reviewers

@jj0526 jj0526 added add feat 이외의 부수적인 코드, 파일, 라이브러리 추가 fix 버그 및 오류 해결 시현 labels Feb 6, 2025
@jj0526 jj0526 requested a review from a team February 6, 2025 15:45
@jj0526 jj0526 self-assigned this Feb 6, 2025
@jj0526 jj0526 linked an issue Feb 6, 2025 that may be closed by this pull request
Copy link
Contributor

@dyk-im dyk-im left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

제가 슬랙에 정확하게 말씀을 못드린 것 같습니다! 컨테이너 메모리 보다는 컨테이너 내부의 jvm의 메모리 힢 용량이 부족한 것으로 판단되어 jvm 자체의 힢 메모리 용량도 늘려주시면 감사하겠습니다! 아래에 참고 자료와 제가 사용했던 코드 남깁니다!
참고 : https://findmypiece.tistory.com/236
코드 : export JAVA_TOOL_OPTIONS="-Xms256m -Xmx1g" //해당 코드는 도커를 활용해 컨테이너 내부에서 직접 조정하는 코드로 사실상 이미지가 초기화되는 저희 코드에서는 매번 작업을 해야하는 번거로움이 있습니다.
그래서 docker run -d -p 8080:8080 -e JAVA_TOOL_OPTIONS="-Xms256m -Xmx1g" myapp 이런 형식으로 조정한다면 리빌드마다 반영되어 번거로움이 줄어들 것으로 생각됩니다!

Copy link
Contributor

@dyk-im dyk-im left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다! 이제 문제없이 잘 돌아갈 것 같습니다!!

@jj0526 jj0526 merged commit adcf90f into dev Feb 12, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add feat 이외의 부수적인 코드, 파일, 라이브러리 추가 fix 버그 및 오류 해결 시현
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[config] 도커 컨테이너 메모리 조정
2 participants