I must admit that I never took the time to configure my Eclipse configuration (in Eclipse.ini file or with the launch command options).
Because I was bored of messages like « Eclipse is running out of memory… », I decided to find some information about the Eclipse configuration.

This is my eclipse.ini file:

-clean
-vmargs
-Xms40m
-Xmx512m
-XX:PermSize=128M
-XX:MaxPermSize=256M
-XX:NewRatio=3
-XX:+UseParallelGC

With this configuration, all OutOfMemory exceptions have gone, at least for the moment :)

Do not hesitate to share your experience.
Note that configuration depends on your usage of Eclipse…
I am using Eclipse to develop web applications, using Spring, Hibernate, JSF (with JBoss Tools), Tomcat…

Start Slide Show with PicLens Lite PicLens