KeepResident
This is really old news and you may know this already but nonetheless... I found a neat Eclipse plugin KeepResident that has significantly improved my Eclipse experience under Windows. You may want to give it a try as well.
There's just Windows version available. I guess there's no need for such a tool for Linux though as memory management is a lot different there. In extreme case you may want to tweak swappiness kernel setting though.