Eclipse freezing at startup - before loading workspace

Viewed 60421

First thing on a morning, just after I switch on my PC (Windows XP) and start my Eclipse it simply shows the splash screen and then freezes. After about 20 minutes it will then ask me which workspace to load.

The problem was happening with 3.5 and 3.6 Eclipse. With the 3.6 Eclipse installation I only have the standard PDE install + Google plugin (for GWT development) + Subclipse.

Because I have it configured to ask me for the workspace I can see its not workspace or project related.

I suspect the Google plugin as I have not had any problems before installing this but I have searched and have not come across anybody reporting similar problems.

It only does this once - straight after I switch my machine on in the morning. After this it starts fine - typically in a few seconds.

What is it likely to be doing? How can I find out what it is doing?

14 Answers

The link @CharlesB posted led me in the right direction, but I found that you only need to delete the .snap file located here:

[Workspace Directory]/.metadata/.plugins/org.eclipse.core.resources/.snap

(Note the .metadata directory is hidden.)

In my case it was freezing in the splash screen, while loading 'view.ui', after having selected the workspace. The fix was running it with: eclipse -clean -clearPersistedState

Delete the .metadata folder in your local workspace (this is what worked for me). It seems that it contains a .LOCK file that if not properly closed, prevents eclipse from starting properly.

This is Perfectly working.

One can launch the DevMode JVM with an explicit tempdir specification. We use Ant to launch DevMode, and I have the following JVM arg specified:

One should be able to use the same "-D" arg if launching via the Google Eclipse plugin as well.

The tempdir we use is cleaned regularly as part of our build process, so junk file accumulation is controlled.

Related