Site icon Beta Utopia

How To -Fix the “GC overhead limit exceeded” Issue on Eclipse

Problem: Your happily working on some project in Eclipse on your Ubuntu and bam! This stupid memory error is wasting your
time.

“GC overhead limit exceeded.”

Solution: We don’t have time for this, fix it. Follow these steps.
Note: (Change the Red Text to your preference)

 

First…

1. Open a Terminal and type: ps aux | grep java and check what the number of the process.

2. Type: kill ProcessNumber

In my example it was: kill 3782

3. Open Eclipse Again. From the Menu, select Help and click About Eclipse

4. Click on Installation Details and select the tab Configuration
Under -launcher, your launcher directory path is listed.

5. Go back into the terminal and type: gedit /YourLaucherDirectoryPath/eclipse.ili

6.Change the following three.
.. XX:MaxPermSize=256m
. Xms40m
-. Xms512m

To this
-. XX:MaxPermSize=1024m
. Xm512m
.. Xms1024m

7.Save and Restart Eclipse

Congratulations! You can now get back to work! “J

Exit mobile version