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. # mua trang suc nhan kim cuong gia re 2018/07/03 21:18 Delete Reply

    Link exchange is nothing else but it is only placing the other person's blog link on your page at suitable place
    and other person will also do similar for you.

  3. # lắp đặt máy lạnh quận 1 2018/07/04 14:18 Delete Reply

    I was able to find good info from your blog posts.

  4. # lắp đặt máy lạnh TĐT 2018/07/04 15:01 Delete Reply

    Its like you read my mind! You seem to know a lot about this, like you wrote the book in it or something.
    I think that you can do with some pics to drive the message home
    a little bit, but other than that, this is great blog. An excellent read.
    I will definitely be back.

  5. # xem thêm 2018/07/04 16:30 Delete Reply

    I got this web page from my friend who shared
    with me regarding this web site and now this time I am browsing this website and reading very informative
    articles or reviews here.

  6. # di doi may lanh quan 2 2018/07/04 16:34 Delete Reply

    Thank you, I have recently been searching for information approximately
    this topic for a while and yours is the best I have came
    upon till now. However, what about the conclusion? Are you certain about the
    source?

  7. # lắp đặt máy lạnh quận 2 2018/07/04 17:25 Delete Reply

    Thanks for sharing your thoughts on lắp đặt máy lạnh quận 2.

    Regards

  8. # lắp đặt máy lạnh quận 2 2018/07/04 21:59 Delete Reply

    Fantastic goods from you, man. I've take into account your stuff prior to
    and you are just too great. I really like what you have received right here, certainly
    like what you are stating and the best way by which you say it.
    You are making it entertaining and you still care for to
    keep it smart. I can't wait to learn far more from you.
    This is really a great website.

  9. # lắp đặt máy lạnh Quận 2 TĐT 2018/07/04 23:34 Delete Reply

    Hello there! I simply want to give you a huge thumbs up for the great information you have right here
    on this post. I will be returning to your blog for more soon.

  10. # xvideos 2018/07/05 01:26 Delete Reply

    I аm really inspiгed together witһ your wrіting talents as neatⅼy as wіtһ the structure to your blog.
    Is that this a paid topic ⲟr did you customize it your self?
    Anyway stay up the eⲭcеllent high ԛualitу writіng, it's uncommon to
    see a nice blog like this one nowadays..

  11. # www.Dealstreetasia.com 2018/07/05 01:45 Delete Reply

    Ꮩery intereѕting informatіon!Perect just what
    I ѡаs looking for!

  12. # lắp đặt máy lạnh quận 2 2018/07/05 09:53 Delete Reply

    I would like to thank you for the efforts you've put in penning this site.
    I'm hoping to check out the same high-grade blog posts from you later on as well.
    In fact, your creative writing abilities has encouraged me to get my very own website now ;)

  13. # tinh dầu sả chanh Ấn Độ 2018/07/05 19:28 Delete Reply

    If some one wishes to be updated with newest technologies then he must be pay a quick visit this
    web page and be up to date everyday.

  14. # Delta Prime Testosterone 2018/07/05 21:55 Delete Reply

    hey there and thank you for your information ?
    I have definitely picked up something new from right here.
    I did however expertise some technical points using this web site, since I experienced to reload the web site lots of times previous to I could
    get it to load properly. I had been wondering if your web
    host is OK? Not that I'm complaining, but slow loading instances times will sometimes affect
    your placement in google and can damage your quality score if advertising and marketing with Adwords.
    Anyway I am adding this RSS to my e-mail and
    can look out for a lot more of your respective exciting content.
    Ensure that you update this again very soon.

  15. # Natalia 2018/07/06 13:45 Delete Reply

    Thee identical happens with the gamer in Increase Seashore.

  16. # Erin 2018/07/06 17:18 Delete Reply

    Download Increase Seaside Hack device and open it.

  17. # revlon ceramic flat iron 2018/07/06 18:09 Delete Reply

    Storing - For safety aand to stop the potential for a fireplace, allow the styler to cpol completely before storing.
    A largfer surface will accelerate the straightening process given it
    can straighten a larger quantity of hair. You may encounter
    various different hair straighteners by Avanti in particular.

  18. # review treadmills 2018/07/07 01:46 Delete Reply

    Unlike powered treadmills, when the user stops moving, sso does the belt.
    One of the things that can be hard concerning the assembly is that
    you may actually tighten the bolts too much. Introduction:There are plenty of factors to consider when searching for a treadmill.

  19. # somosembajadores.com 2018/07/07 04:56 Delete Reply

    Download your Boom Seashore hacks with extreme care!

  20. # Vida 2018/07/07 07:28 Delete Reply

    The second model from the Boom Beach Hacck is keep.

  21. # Top Rated Golf Rangefinders 2018/07/07 15:21 Delete Reply

    With quick response times and battery saving features it is a great investment.
    This will be very helpful you may have the ability to become a better golfer.
    Today, the very best players in addition to their caddies continue to be using laser rangefinders inside their pre-tournament preparation,
    as opposed to GPS, which can be widey used with recreational golfers.

  22. # lắp đặt máy lạnh quận 2 2018/07/09 18:50 Delete Reply

    Magnificent website. Plenty of useful information here.

    I'm sending it to several pals ans also sharing
    in delicious. And obviously, thanks for your sweat!

  23. # xvideo 2018/07/10 08:00 Delete Reply

    Tһanks for sharing such a good opinion, piece of ѡriting is nice, thats why i hɑve read it completely

  24. # lắp đặt máy lạnh quận 1 2018/07/10 18:50 Delete Reply

    Hey there! This post couldn't be written any
    better! Reading this post reminds me of my old room mate!
    He always kept talking about this. I will forward this
    write-up to him. Fairly certain he will have a good read.

    Many thanks for sharing!

  25. # joma jewellery happy ever after 2018/07/15 20:43 Delete Reply

    Houses go up in value over time, so dwelling owners can borrow against their equity.
    This is still utilizing their home as collateral.

  26. # beeg 2018/07/16 01:22 Delete Reply

    Ꮐreetings! Very helpful advice wіthin this
    post! It is the little changes that make the most significant
    changeѕ. Thanks for sharing!

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. After looking at a handful of the bl... sem 00:22
  2. I would like to take the ability of ... Reno Anti-Wrinkle Serum 07/18
  3. You got a very wonderful website, Gl... Zytec Xl Reviews 07/18
  4. Pretty component of content. I simpl... indie music 07/17
  5. Hi there, i read your blog occasiona... cleaner 07/16

Recent Trackbacks

Bookmarks

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

1049

801

google chart api graph

-30 days

today : 266

Site Stats

TOTAL 573817 HIT
TODAY 266 HIT
YESTERDAY 999 HIT