The Workarounds for Eclipse Crash with JDK 1.6.0.05+

2008-03-28 14:58

Eclipse crashes almost always with SUN JDK 1.6.0.05 or above. There are two workarounds:
  • Use SUN JDK 1.5.
  • Prevent org.eclipse.core.internal.dtree.DataTreeNode.forwardDeltaWith() from being compiled by the hotspot engine:
    cd /usr/local/java/eclipse
    echo "exclude org/eclipse/core/internal/dtree/DataTreeNode forwardDeltaWith"
    > .hotspot_compiler
I prefer the second solution because JRE 1.6 outperforms JRE 1.5 in performance, which means better IDE responsiveness etc etc. However, it is also OK to choose the solution #1 when the second one doesn't work for you.
---

Comments

5 Comments

Strange, I've never seen that happen and I use Eclipse all day. Which platform are you on? Care to post a stack trace?

Ortwin · 2008-03-28 17:12 · # · Reply

Hi Trustin,

it may be a problem with the perm gen size. If you have a lot of loaded plugins, like WTP or such phat guys, Sun JVM may crash with OOM errors (typically, out of heap space errors).

Just increase your perm gen in the eclipse launcher :
eclipse -data $HOME/ws-myworkspace -vm $JAVA_HOME/bin/java -vmargs -Xmx500M -XX:PermSize=128M -XX:MaxPermSize=256M

Or switch to Jrockit or IBM JVM.

Emmanuel Lécharny · 2008-03-28 17:26 · # · Reply

I'm uaing Linux. I was able to reproduce the problem in Fedora 8 and Gentoo. Please take a look at here:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6614100

Trustin Lee · 2008-03-29 01:04 · # · Reply

thank you. it helped me

alex_gilboa · 2008-04-20 17:21 · # · Reply

@alex_gilboa: It's nice to hear that it was helpful for you. :)

Trustin Lee · 2008-04-21 14:36 · # · Reply

 
  • Preview 버튼 누르고 reCAPTCHA 입력 후 Submit 버튼까지 눌러야 실제로 게시됩니다.
  • Make sure to answer the reCAPTCHA and click the Submit button to get your comment posted. It's not enough to click the Preview button only! -- See why.
---