java.lang.OutOfMemoryError: GC overhead limit exceeded 해결 방법

2024. 11. 27. 10:11·🚀 from error to study/Java



 

🔥 포스팅 계기

 

너무 화가 난 나머지 증상 캡처를 못 해 버림...

하지만 VM arguments를 다시 바꿔서 에러를 또 냈다 하하 포스팅을 위해서라면

 

 

 

 

📍 Maven 빌드 중 오류 발생

👉🏻 ekp.war를 로컬에서 말아서 업로드 해야 하는 곳이 있어 진행 중에 오류 발생하며 메이븐 빌드 실패가 떴음

The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: GC overhead limit exceeded

 

 

 

 

📍 원인: 자바 메모리 부족

👉🏻 메이븐을 빌드할 때 소스를 쭉 훑을 텐데 거기서 기본 설정값(혹은 이클립스 별도 설정값) 이상의 메모리가 필요한 듯함

👉🏻 그렇다면 메이븐도 별도 지정을 해 주자

 

👉🏻 ? 머야 왜 똑같애

헉

 

허억 내가 1.8이라니

 

 

 

 

📍 JAVA 1.8 Maven VM argugments 변경하는 법

👉🏻 1) 프로젝트 우클릭 > Run As > Run Configurations 

 

 

 

👉🏻 2) JRE 탭 > VM arguments 수정

-Xmx1024M -Xss128M -XX:MetaspaceSize=512M -XX:MaxMetaspaceSize=1024M

 

 

 

📍 해결 화면

된다!!

 

 

 

더보기

https://stackoverflow.com/questions/18770487/how-to-solve-gc-overhead-limit-exceeded-using-maven-jvmarg

 

How to solve "GC overhead limit exceeded" using maven jvmArg?

When running a class I have the following exception: Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded I've tried to increase the jvmArg heap size from inside ma...

stackoverflow.com

 

 

 

저작자표시 비영리 변경금지 (새창열림)
'🚀 from error to study/Java' 카테고리의 다른 글
  • [Jenkins] Ant Build 시 깃 소스로 덮어씌우지 않을 파일 지정하기 (feat. build.xml)
  • An internal error occurred during: "Periodic workspace save.". Cannot parse null string 해결 방법
  • [JAVA] java.net.MalformedURLException: unknown protocol: c 오류 해결법
  • [Java] NullPointerException을 방지하는 Objects.equals 메서드
천재강쥐
천재강쥐
  • 천재강쥐
    디버거도 버거다
    천재강쥐
  • 전체
    오늘
    어제
    • Category (467)
      • 진짜 너무 궁금한데 이걸 나만 몰라...? (0)
      • 💾 Portfolio (2)
      • 🐤 CodingTest (28)
        • Java (20)
        • ᕕ(ꐦ°᷄д°᷅)ᕗ❌ (5)
      • 🚀 from error to study (142)
        • AI (1)
        • Cloud (2)
        • DB (12)
        • Front-End (16)
        • Github (14)
        • Java (39)
        • Mac (7)
        • Normal (29)
        • Server (22)
      • 📘 certificate (44)
        • 📘 리눅스마스터1급 (1)
        • 📘⭕️ 정보처리기사 (40)
        • 📘⭕️ SQLD (3)
      • 📗 self-study (234)
        • 📗 inflearn (35)
        • 📗 생활코딩 (8)
        • 📗 KH정보교육원 당산지원 (190)
      • 🎨 Scoop the others (0)
        • 📖 Peeking into other people.. (0)
        • 🇫🇷 (0)
        • 📘⭕️ 한국사능력검정시험 심화 (11)
        • 오블완 (4)
  • 인기 글

  • hELLO· Designed By정상우.v4.10.1
천재강쥐
java.lang.OutOfMemoryError: GC overhead limit exceeded 해결 방법
상단으로

티스토리툴바