I would suggest the following changes to your eclipse environment. Please go to the eclipse shortcut and open the properties. In the Target just after the path to the .exe copy the machine specific arguments.
RECOMMENDED ARGUMENTS (you can play with the exact numbers based on your machine configuration)
-vmargs -Xms512m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=128m
RAM 2 GB
-vmargs