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.
Strange, I’ve never seen that happen and I use Eclipse all day. Which platform are you on? Care to post a stack trace?
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.
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
thank you. it helped me
@alex_gilboa: It’s nice to hear that it was helpful for you. 🙂