Eclipse hang/lag?

Sometimes Eclipse hangs/lags for a very long time - typically because you have minimized it - and/or not used it for a long time. I just stumbled upon this fix:
http://suif.stanford.edu/pub/keepresident/

Windows only, but afaik, it is only windows that suffer from it:

[quote] The performance of Eclipse (and other large Java applications) has long suffered due to the Windows virtual memory manager. Windows has a tendency to preemptively swap Java processes out of physical memory, even when there is still plenty of physical memory available. This interacts very poorly with Java processes, which do not have good locality and touch a lot of memory. The problem is exacerbated when Java performs garbage collection, which causes the Java process to touch lots of memory that has been paged out to disk. Ever had Eclipse randomly hang for 15-20 seconds? This is most likely the culprit.
[/quote]

On windows, keep up the Task Manager. Make sure that you have the “Mem Usage” and “VM Size” colums selected (View -> Select Columns …). If Eclipse “hangs”, take a look at the “Mem Usage” column. If it’s less than (and typically much less than) the “VM Size” and growing, then it was swapped out and it being swapped back in.

Heh, I don’t have enough RAM to keep Eclipse, Mozilla and Tomcat in memory at the same time. I need Windows to start swapping… ::slight_smile: