eclipse. Java heap space 오류

Posted 2010/04/18 13:17, Filed under: 나의 길/에러 극복하기
사용자 삽입 이미지

요즘은 이클립스를 가지고 작업을 한다.
물론 아는바는 없지.. ^^

컴파일을 하다보면 저런 에러를 만난다.
Java heap space 에러나 java.lang.OutOfMemoryError 에러.
전에는 그냥 그런가보다 했지만 너무 자주나서 찾아봤더니 간단한 해결책이 있더군

eclipse 실행폴더에 보면 eclipse.ini 파일이 있다
-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.java.product
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx256m

위에서 Xms 는 최소 Xmx는 최대 메모리 설정값이다
저값을 크게 늘려준다.
내 노트북 메모리가 4기가인데 많이 놓고 있었던 상태군.

검색에 의하면 종종 PermGen 값에도 영향이 있다고 하니 설정을 했는데도 오류가 발생할 경우에는
XXMaxPermSize 값을 수정해준다.

그리고.
위의 값을 고쳤을시에

사용자 삽입 이미지
위와 같이 오류가 발생할 수 있다.
JVM terminated. Exit code=-1


이럴 경우에는
vm 으로
javaw.exe 를 지정해준다.
-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.java.product
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm C:\Program Files (x86)\Java\jdk1.6.0_18\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms512m
-Xmx1024m

최종적으로는 위와 같이 고쳤다.

Xmx를 1536으로 했더니 오류가 난다.
1024로 설정해본다.


크리에이티브 커먼즈 라이센스
Creative Commons License
2010/04/18 13:17 2010/04/18 13:17

Trackback URL : http://simplelife.pe.kr/tc/trackback/642

  1. # Software Engineering 2018/05/10 19:50 Delete Reply

    Thanhk you for this informative read, I have shared it
    on Twitter.

  2. # Keto Fit Weight Loss 2018/06/10 14:09 Delete Reply

    Some really interesting info, well written and broadly user pleasant.

  3. # read me 2018/06/11 16:03 Delete Reply

    Good post. I absolutely love this website. Keep writing!

  4. # read me 2018/06/11 16:10 Delete Reply

    We are a bunch of volunteers and starting a brand
    new scheme in our community. Your site offered us with helpful information to work on.
    You have done a formidable job and our entire community shall be thankful to
    you.

  5. # read me 2018/06/11 16:12 Delete Reply

    When someone writes an piece of writing he/she keeps the thought of a user in his/her brain that how
    a user can know it. Thus that's why this article is
    perfect. Thanks!

  6. # read me 2018/06/11 16:14 Delete Reply

    You're so awesome! I do not believe I have read through anything
    like this before. So wonderful to discover another person with some genuine
    thoughts on this topic. Really.. many thanks
    for starting this up. This site is something that's needed on the
    internet, someone with some originality!

  7. # read me 2018/06/11 16:20 Delete Reply

    Incredible story there. What happened after? Good luck!

  8. # read me 2018/06/11 16:23 Delete Reply

    Fantastic beat ! I wish to apprentice whilst you amend your website, how can i
    subscribe for a weblog site? The account helped me a applicable deal.
    I were tiny bit familiar of this your broadcast provided shiny clear concept

  9. # xhamster 2018/06/12 16:46 Delete Reply

    Τoday, I went to the beach front with my children. I found a seɑ shelⅼ and gave іt to
    my 4 year old daughter ɑnd said "You can hear the ocean if you put this to your ear." She put the shell to her ear and screamed.
    Thеre was a hermit crab inside and it pinched her eaг.

    She never wants to ɡo back! LoL I knoᴡ this is entirely
    off topic but I had to tell someone!

  10. # ควย 2018/06/15 07:41 Delete Reply

    I was cuгious if you ever thought ⲟf changing the structuгe of your website?
    Its very well written; I love whɑt youѵe got to say. But maybе you could a
    little more in thе way of content so people could connect with it better.
    Youve got an awful lot of text for only having 1 or two images.
    Mаybe you could space it out better?

  11. # Neuro Factor Plus Review 2018/06/21 07:38 Delete Reply

    I'll right away snatch your rss as I can't in finding your e-mail
    subscription link or newsletter service. Do you've
    any? Please let me recognize so that I may just subscribe.
    Thanks.

Leave a comment

« Previous : 1 : ... 57 : 58 : 59 : 60 : 61 : 62 : 63 : 64 : 65 : ... 504 : Next »

뚜는 지금.. 사랑해사랑해
아.. 열심히 살자..
남자B형염소자리인천

Categories

전체 (504)
뚜.. 서툰.. (258)
폰 이야기 (13)
나의 길 (85)
읽을거리 (21)
사진갤러리 (124)

Recent Posts

  1. Android Studio 2.2 에서 layout 미리...
  2. mac 에서 ssh 접속시 한글 입력이 안될때.
  3. Android Studio. Zxing 라이브러리 사...
  4. 안드로이드 프로젝트를 SVN 등록시 bin...
  5. 안드로이드에서 android.annotation 를...

Recent Comments

  1. I'll right away snatch your rss as I... Neuro Factor Plus Review 07:38
  2. This is а great tip especially to th... หนังโป๊ญี่ปุ่น 06/19
  3. A fаscinating discussion is definite... euglena 06/18
  4. Hello mates, its enormous article ab... how to upgrade to windows 10 06/15
  5. I was cuгious if you ever thought ⲟf... ควย 06/15

Recent Trackbacks

Bookmarks

  1. ATOMOS
  2. c3cc3's Homepage
  3. 봄실
  4. 우중산보... 그 싱그러운 여유

966

735

google chart api graph

-30 days

today : 514

Site Stats

TOTAL 550805 HIT
TODAY 514 HIT
YESTERDAY 497 HIT