[Jenkins] not enough memory for initialization 해결방법 [서버의 용량 부족으로 발생하는 에러]

2023. 2. 3. 21:01·▣ Tools/Jenkins👨🏻
728x90


- not enough memory for initialization 해결방법

젠킨스 톰캣 연동까지 하여 빌드를 하니 발생한 에러
포인트는 not enough memory for initialization. 초기화 하는데 메모리가 충분하지 않다는 것..

Started by user ???
Running as SYSTEM
Building in workspace C:\Jenkins\workspace\Jenkins-Test
The recommended git tool is: NONE
using credential kycasdzxc
Cloning the remote Git repository
Cloning repository https://github.com/kycasdzxc/Jenkins_test.git
 > C:\Program Files\Git\bin\git.exe init C:\Jenkins\workspace\Jenkins-Test # timeout=10
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Could not init C:\Jenkins\workspace\Jenkins-Test
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:1049)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:802)
	at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1229)
	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1312)
	at hudson.scm.SCM.checkout(SCM.java:540)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1239)
	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:647)
	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:85)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:519)
	at hudson.model.Run.execute(Run.java:1899)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
	at hudson.model.ResourceController.execute(ResourceController.java:107)
	at hudson.model.Executor.run(Executor.java:449)
Caused by: hudson.plugins.git.GitException: Command "C:\Program Files\Git\bin\git.exe init C:\Jenkins\workspace\Jenkins-Test" returned status code 128:
stdout: 
stderr: fatal: not enough memory for initialization
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2697)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2627)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2623)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1981)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:1047)
	... 12 more
ERROR: Error cloning remote repo 'origin'
[DeployPublisher][INFO] Build failed, project not deployed
Finished: FAILURE

 

문제의 원인은 이것저것 설치하다 보니 서버의 용량이 부족했던 것이였다.
젠킨스 공식문서를 참고하니, 윈도우 세팅 시 권장하는 여유공간으로 50GB는 있어야 한다고 한다.

꽉 차 버린 내 서버의 용량..😂😂
젠킨스 공식문서에서는 세팅 시 여유공간으로는 50GB 정도를 추천한다.


- 젠킨스 공식문서 참고

 

Windows

MSI installers can be installed via a silent method, which can show basic UI (/qb) or no UI at all (/qn). The silent method does not prompt for user input so there are properties that you can pass to the installer to set the specific values. A very basic c

www.jenkins.io


이번 문제는 기존 쓰던 서버에 젠킨스를 세팅하여 용량이 부족했던 게 화근 (프리티어인 거도 한 몫 했다..)
나중에 젠킨스를 써야할 일이 있다면, 젠킨스용으로 서버를 따로 구축해야겠다.

728x90
'▣ Tools/Jenkins👨🏻' 카테고리의 다른 글
  • [Jenkins] 젠킨스(Jenkins)와 톰캣(Tomcat) 연동하기 [프로젝트 빌드 시 자동으로 배포하기]
  • [Jenkins] Failed to Connect to repository : Error performing git command 해결방법 [Server에 Git 설치하기]
  • [Jenkins] 젠킨스(Jenkins)와 깃허브(Github) 연동하기 [Github에 올린 프로젝트 Jenkins로 build하기]
  • [Jenkins] 젠킨스(Jenkins) 홈 디렉토리, 접근 IP 변경 [Jenkins 추가적인 설정하기]
예르미(yermi)
예르미(yermi)
끊임없이 제 자신을 계발하는 개발자입니다👨🏻‍💻
  • 예르미(yermi)
    예르미의 코딩노트
    예르미(yermi)
  • 전체
    오늘
    어제
    • 분류 전체보기 (937)
      • ◎ Java (133)
        • Java☕ (93)
        • JSP📋 (26)
        • Applet🧳 (6)
        • Interview👨🏻‍🏫 (8)
      • ◎ JavaScript (48)
        • JavaScript🦎 (25)
        • jQuery🌊 (8)
        • React🌐 (2)
        • Vue.js🔰 (6)
        • Node.js🫒 (3)
        • Google App Script🐑 (4)
      • ◎ HTML5+CSS3 (17)
        • HTML5📝 (8)
        • CSS3🎨 (9)
      • ──────────── (0)
      • ▣ Framework (67)
        • Spring🍃 (36)
        • Spring Boot🍀 (12)
        • Bootstrap💜 (3)
        • Selenium🌕 (6)
        • MyBatis🐣 (10)
      • ▣ Tools (47)
        • API🎯 (18)
        • Library🎲 (15)
        • JitPack🚀 (3)
        • Jenkins👨🏻 (7)
        • Thymeleaf🌿 (4)
      • ▣ Server (32)
        • Apache Tomcat🐱 (14)
        • Apache HTTP Server🛡️ (1)
        • Nginx🧶 (7)
        • OracleXE💿 (4)
        • VisualSVN📡 (4)
      • ▣ OS : 운영체제 (18)
        • cmd : 명령프롬프트💻 (10)
        • Linux🐧 (8)
      • ▣ SQL : Database (56)
        • Oracle SQL🏮 (26)
        • PL SQL💾 (9)
        • MySQL🐬 (6)
        • MariaDB🦦 (6)
        • H2 Database🔠 (3)
        • SQL 실전문제🐌 (6)
      • ────────── (0)
      • ◈ Human Project (86)
        • Mini : Library Service📚 (15)
        • 화면 설계 [HTML]🐯 (10)
        • 서버 프로그램 구현🦁 (15)
        • Team : 여수어때🛫 (19)
        • Custom : Student🏫 (9)
        • Custom : Board📖 (18)
      • ◈ Yermi Project (40)
        • 조사모아(Josa-moa)📬 (5)
        • Riddle-Game🧩 (6)
        • 맛있을 지도🍚 (2)
        • 어디 가! 박대리!🙋🏻‍♂️ (5)
        • 조크베어🐻‍❄️ (4)
        • Looks Like Thirty🦉 (2)
        • Toy Project💎 (12)
        • 오픈소스 파헤치기🪐 (4)
      • ◈ Refactoring (15)
        • Mini : Library Service📚 (8)
        • 서버 프로그램 구현🦁 (1)
        • Team : 여수어때🛫 (0)
        • 쿼리 튜닝일지🔧 (6)
      • ◈ Coding Test (89)
        • 백준(BOJ)👨🏻‍💻 (70)
        • 프로그래머스😎 (2)
        • 코드트리🌳 (7)
        • 알고리즘(Algorithm)🎡 (10)
      • ◈ Study (102)
        • 기초튼튼 개발지식🥔 (25)
        • HTTP 웹 지식💡 (4)
        • 클린코드(Clean Code)🩺 (1)
        • 디자인패턴(GoF)🥞 (12)
        • 다이어그램(Diagram)📈 (4)
        • 파이썬(Python)🐍 (16)
        • 에러노트(Error Note)🧱 (34)
        • 웹 보안(Web Security)🔐 (6)
      • ◈ 공부모임 (39)
        • 혼공학습단⏰ (18)
        • 코드트리 챌린지👊🏻 (2)
        • 개발도서 100독👟 (8)
        • 나는 리뷰어다🌾 (11)
      • ◈ 자격증 공부 (37)
        • 정보처리기사🔱 (16)
        • 정보처리산업기사🔅 (9)
        • 컴퓨터활용능력 1급📼 (12)
      • ─────────── (0)
      • ◐ 기타 (113)
        • 알아두면 좋은 팁(tip)✨ (46)
        • 개발자의 일상🎈 (44)
        • 개발도서 서평🔍 (10)
        • 개발관련 세미나🎤 (2)
        • 블로그 꾸미기🎀 (9)
        • 사도신경 프로젝트🎚️ (2)
  • 인기 글

  • 최근 댓글

  • 태그

    jsp
    코딩 테스트
    일상
    CSS
    Oracle
    javascript
    백준
    spring
    Database
    코딩
    Java
    SQL
    BOJ
    Project
    자바스크립트
    프로그래밍
    꿀팁
    Error Note
    html
    백준 티어
  • 250x250
  • hELLO· Designed By정상우.v4.10.3
예르미(yermi)
[Jenkins] not enough memory for initialization 해결방법 [서버의 용량 부족으로 발생하는 에러]
상단으로

티스토리툴바