The Workarounds for Eclipse Crash with JDK 1.6.0.05+

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.

5 Comments The Workarounds for Eclipse Crash with JDK 1.6.0.05+

  1. Ortwin

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

  2. Emmanuel Lécharny

    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.

Comments are closed.