If you use Eclipse Ganymede with large projects on linux you may run out of memory. To prevent this happening, you can specify the amount of memory to be allocated to Eclipse in the eclipse.ini file which is located in the eclipse directory.
Specifying this seems to reslove the problem:
-Xmx512m
-XX:MaxPermSize=512m