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. # Flexwell Review 2018/08/24 05:37 Delete Reply

    What's up, its good paragraph on the topic of media print, we all be aware
    of media is a enormous source of data.

  3. # Yulanda Degruy 2018/08/31 22:35 Delete Reply

    That is the suitable blog for anyone who desires to seek out out about this topic. You understand a lot its almost laborious to argue with you (not that I actually would want…HaHa). You positively put a new spin on a subject thats been written about for years. Nice stuff, simply great!

  4. # Neocortex Cognitive Reviews 2018/09/05 11:40 Delete Reply

    Thank you for every other magnificent article. Where else could
    anyone get that kind of info in such a perfect way of
    writing? I've a presentation next week, and I'm at the search for such info.

  5. # https://Besttwincarrier.weebly.Com 2018/09/06 14:46 Delete Reply

    A very powedful characteristic of any child carrier is security.

  6. # Norris 2018/09/10 15:35 Delete Reply

    Most baby monitors light up onnce they register noise.

  7. # Ultra Cell CBD 2018/09/10 15:37 Delete Reply

    It is perfect time to make a few plans for the long run and it's time to be happy.

    I've learn this publish and if I may I want to counsel you few attention-grabbing issues or suggestions.

    Maybe you could write next articles referring to
    this article. I wish to read even more issues about
    it!

  8. # Patricia 2018/09/10 23:08 Delete Reply

    Award Profitable Child Carrierss and Toddper carriers.

  9. # redtube 2018/09/11 03:08 Delete Reply

    Thanks for fіnally talking about >끄적거림의 자유로움
    :: eclipse. Java heap space 오류 <Liked it!

  10. # Cameron 2018/09/14 18:43 Delete Reply

    We put child carriers and slings to the check.

  11. # appsplit.com 2018/09/15 01:11 Delete Reply

    Market analysis is a subset off marketing research.

  12. # https://movement-monitors-for-babies-26.webself.net 2018/09/15 08:18 Delete Reply

    We did not discover outcomes for: snuaa baby monitor.

  13. # Rosaria 2018/09/16 19:30 Delete Reply

    Shop for levana baby displays at Greatest Purchase.

  14. # Baby-fun-with-dad-53.Webself.net 2018/09/17 06:33 Delete Reply

    Convertible car seats develop with the child.

  15. # Marcy 2018/09/18 02:27 Delete Reply

    Aw, this was an incredibly nice post. Taking the
    time and actual effort to make a very good article… but what can I say… I put things off
    a whole lot and never seem to get nearly anything done.

  16. # redtube 2018/09/18 08:48 Delete Reply

    Hi, I tһink your weƅsite might be having broԝѕer compɑtibility issueѕ.
    When Ι look at ʏour blog in Opera, it looks fine but when opening in Internet Explorer,
    it has some overlapping. I just wanted to give you a quick
    heads up! Other then that, amazing blog!

  17. # Bret 2018/09/19 16:09 Delete Reply

    It's supportive to the baby's hips annd spine.

  18. # camera cao cấp hải nam 2018/09/20 21:11 Delete Reply

    Thanks , I've just been searching for information approximately
    this subject for ages and yours is the best I've found out till now.

    But, what about the bottom line? Are you sure concerning the source?

  19. # máy đo huyết áp điện thử 2018/09/21 07:00 Delete Reply

    Amazing! This blog looks just like my old one!
    It's on a totally different topic but it has pretty much the same layout and design. Outstanding choice of colors!

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. If you don't have a list you are in ... 3win8 apk 04:43
  2. Ultimately your blog is the funnel m... live22 casino 09/24
  3. Lyndia is the place I'm called but d... online poker dealer 09/24
  4. Hi my friend! I want to sayy that th... runescape 2007 gold 09/24
  5. Thanks to my father who told me abou... minecraft 09/24

Recent Trackbacks

Bookmarks

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

1243

675

google chart api graph

-30 days

today : 213

Site Stats

TOTAL 627100 HIT
TODAY 213 HIT
YESTERDAY 842 HIT