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. 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.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.