Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse refreshing workspace takes forever

Tags:

eclipse

When I start up Eclipse, ready to rock, I have to sit there and wait for like 5 or 6 minutes until Eclipse get its sh*t together, "Refreshing workspace... (13%)" it states in the status bar while Eclipse is completely frozen.

Is there any way to turn this off or at least speed this "refreshing" up?

UPDATE:

It turns out that the solution was quite easy to resolve by closing projects that where not in use. I currently have about 25 projects and almost all of them are Subversion check-outs. I think that on start-up Eclipse will scan through all open/active projects and do some synchronization of some sort. Closing projects that I'm currently not working on drastically speeded up launching Eclipse.

like image 675
Luke Avatar asked Aug 31 '09 22:08

Luke


People also ask

Why is Eclipse Building workspace so slow?

In development, when you find the eclipse workspace build process is slower and slower, and if the main reason is because of validating static files ( for example validate JS, CSS, XML file, and so on). Then you need to reduce or remove the validators in the eclipse preference validation section.

How do you refresh in Eclipse?

When a new file is created in Eclipse you might need to refresh the Eclipse project to see the new file. This refresh process can take place automatically. To set auto-refresh, go to window → preferences → general → workspace and check the "Refresh using native hooks or polling" check-box.


1 Answers

There are a couple of questions/answers on SO that might help you :

  • Tricks to speed up Eclipse
  • How to speed up the eclipse project ‘refresh’ ; I'm using the filesync plugin suggested there every day, and it's a real pleasure : 10 seconds for an SVN update, instead of 5 to 8 minutes (my files being on a network drive) ; same when launching Eclipse, as it was the "project refresh" that took time, exactly like you described.
  • Eclipse optimizations

Maybe those posts will help you at least a bit :-)

If not : can you tell us a bit more about your set up ? Which plugins are you using, how big are your projects, which OS do you use, what kind of computer (CPU, RAM, ...) do you use ...


One thing that will help for sure, is getting more RAM, at least if you only have 1 GB : that's definitly not enough for Eclipse ; in my opinion, 2 GB is the minimum required, if you want to be able to run anything else (browser, mail, whatever, ...) at the same time.

Couple of other ideas include :

  • Using sun's JVM ; using the last version is probably a good idea
  • Using the latest version of Eclipse, too (For PHP, I've seen great things when switching from PDT 1.x to 2.x, at least)
  • Configure your JVM / eclipse.ini properly
like image 194
Pascal MARTIN Avatar answered Sep 28 '22 01:09

Pascal MARTIN