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

배포 환경 메모리 초과 #64

Open
3 tasks
devrokket opened this issue Jan 20, 2024 · 0 comments
Open
3 tasks

배포 환경 메모리 초과 #64

devrokket opened this issue Jan 20, 2024 · 0 comments
Assignees
Labels
Bug 버그 발생 시

Comments

@devrokket
Copy link
Collaborator

devrokket commented Jan 20, 2024

Issue

java.lang.OutOfMemoryError: Java heap space

at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.closeConnection(DatasourceConnectionProviderImpl.java:127) ~[hibernate-core-5.6.12.Final.jar!/:5.6.12.Final]
        at org.hibernate.internal.NonContextualJdbcConnectionAccess.releaseConnection(NonContextualJdbcConnectionAccess.java:49) ~[hibernate-core-5.6.12.Final.jar!/:5.6.12.Final]
        at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.releaseConnection(LogicalConnectionManagedImpl.java:219) ~[hibernate-core-5.6.12.Final.jar!/:5.6.12.Final]
        ... 102 common frames omitted

2024-02-14 11:08:41.812 ERROR 633950 --- [o-8080-exec-225] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Handler dispatch failed; nested exception is java.lang.OutOfMemoryError: Java heap space] with root cause

java.lang.OutOfMemoryError: Java heap space

❓ About

  • 자바 힙 공간이 부족한 문제
  • 객체가 힙공간에 생성되고 해제되지 않는 메모리 누수가 발생했을 가능성
  • JVM을 구동할 때 단순 공간이 부족(프리티어 RAM 1GB)일 가능성
  • 로그 찍히는 문제

✅ Tasks

  • 코드 리팩토링 하며 힙 공간 부족 원인을 찾을 필요가 있어 보입니다.
  • 코드의 문제가 아니라면 EC2 프리티어가 아닌 RAM 공간을 더 쓸 필요가 있어 보입니다.

🙋‍♂️ 논의 사항

@devrokket devrokket added the Bug 버그 발생 시 label Jan 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 버그 발생 시
Projects
None yet
Development

No branches or pull requests

2 participants