• 카테고리

    질문 & 답변
  • 세부 분야

    백엔드

  • 해결 여부

    미해결

@Test void connection() { Connection connection = DBConnectionUtil.getConnection(); assertThat(connection).isNotNull(); }

24.01.11 01:22 작성 조회수 280

0

학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요.

1. 강의 내용과 관련된 질문을 남겨주세요.
2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.
(자주 하는 질문 링크: https://bit.ly/3fX6ygx)
3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.
(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG)

질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.
=========================================
[질문 템플릿]
1. 강의 내용과 관련된 질문인가요? (예/아니오)
2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)
3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)

[질문 내용]
여기에 질문 내용을 남겨주세요.
H2 DB 연결확인후 테스트 코드
package hello.jdbc.connection; import lombok.extern.slf4j.Slf4j; import org.junit.jupiter.api.Test; import java.sql.Connection; import static org.assertj.core.api.Assertions.assertThat; @Slf4j class DBConnectionUtilTest { @Test void connection() { Connection connection = DBConnectionUtil.getConnection(); assertThat(connection).isNotNull(); } }
실행시.
무한 러닝 응답없음
터미널 창 상태

mone@moneui-MacBookAir bin % ./h2.s

[14.589s][warning][os,thread] Failed to start thread "Unknown thread" - pthread_create failed (EAGAIN) for attributes: stacksize: 2048k, guardsize: 16k, detached.

[14.590s][warning][os,thread] Failed to start the native thread for java.lang.Thread "H2 TCP Server (tcp://localhost:9092) thread-2006"

Exception in thread "H2 TCP Server (tcp://localhost:9092)" java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reached

at java.base/java.lang.Thread.start0(Native Method)

at java.base/java.lang.Thread.start(Thread.java:798)

at org.h2.server.TcpServer.listen(TcpServer.java:273)

at org.h2.tools.Server.run(Server.java:647)

at java.base/java.lang.Thread.run(Thread.java:829)


6시간 삽집...

답변 1

답변을 작성해보세요.

0

모네님의 프로필

모네

질문자

2024.01.11

해결안됨...

안녕하세요. 모네님

다음 링크에서 같이 해결할게요 🙂

https://www.inflearn.com/questions/1136244