iThoughts

Upgrade your Brain

Eclipse “Out of Memory Error” and “GC overhead limit exceeded”

Syntax Error -  Folded Up Beyond All RecognitionIf you happen to have Eclipse not responding anymore sometimes, the reason could be that you sit on a 64bit machine where eclipse needs more memory. Be sure to have (at least) the following configurations in your eclipse.ini (I even use bigger values for the PermSizes):

-Xms512m
-Xmx1024m
-XX:PermSize=64m
-XX:MaxPermSize=128m

Creative Commons License photo credit: Simon Pow

30 thoughts on “Eclipse “Out of Memory Error” and “GC overhead limit exceeded”

  1. I had this problem with eclipse-php and using Drupal 6. It took me a while to realize that eclipse was trying to load all of the old aggregated JS files into memory before throwing an error. Once I emptied out sites/default/files/js and rebuilt the workspace everything ran smoothly.

  2. Man… this saved my day, thanks a lot!

    I’d installed Java updates and all sorts trying to figure this one out and then discovered this post… cheers! ;)

    //WildStyle

  3. I was seeing errors cropping up after installing modeling tools, generally when trying to add new components to the environment. Wasn’t so much of an issue with Helios, but is noticeably worse in Indigo. Thanks for the info!

  4. ***

    – Optimisation de la mémoire de la JVM pour Eclipse

    ***

    Par défaut, Eclipse est tout à fait adapter pour des projets « standard » de taille moyenne et qui ne demandent pas beaucoup de dépendances complexes.
    Par contre dès qu’il s’agit de développer dans un environnement plus complexe avec plusieurs Frameworks et plugins, cela peut facilement tourner au drame et avoir quelques erreurs dues à l’insuffisance de mémoire notamment dans la zone mémoire « permGen space », comme « Eclipse need more memory… Do you want to exit the workbench now ? » ou « OutOfMemoryException« . Ce genre d’erreur est assez répétitif et nous fait perdre beaucoup de temps.

    Alors pour remédier à tout cela, la solution est de passer des paramètres au lancement de Eclipse. Ces paramètres dépendent de la configuration de notre machine.
    ===>plus détails : http://learninformatique.blogspot.com

  5. Thanks a lot, I look at this post every time I install eclipse.
    I was wondering if you could update the post to say what each of those values (e.g. Xms) mean, so I could adjust accordingly.
    For the first time today the minimum values you gave haven’t been enough, and don’t know which to change!
    Thanks again

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top