Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse crashes with a GC overhead limit exceeded error

Tags:

It's the first time I am using Proguard, I've noticed that if you add many custom rules to proguard-project.txt it takes obviously much more time for building. That's cause Eclipse to crash reporting a GC overhead limit exceeded and then I have to force the shut down of java because the editor continues to pop out error and alert dialogs. Is there any way to avoid these continuous crashes on Eclipse and so fix the problem reported here too?

like image 202
Silvio Avatar asked Apr 15 '14 09:04

Silvio


People also ask

How do I fix GC overhead limit exceeded in Eclipse?

From the root of the Eclipse folder open the eclipse. ini and change the default maximum heap size of -Xmx256m to -Xmx1024m on the last line. NOTE: If there is a lot of memory available on the machine, you can also try using -Xmx2048m as the maximum heap size.

How do you handle GC overhead limit exceeded?

OutOfMemoryError: GC overhead limit exceeded" error indicates that the NameNode heap size is insufficient for the amount of HDFS data in the cluster. Increase the heap size to prevent out-of-memory exceptions.

What is Gc error?

GC Overhead Limit Exceeded Error It's thrown by the JVM when it encounters a problem related to utilizing resources. More specifically, the error occurs when the JVM spent too much time performing Garbage Collection and was only able to reclaim very little heap space.

What is GC overhead in spark?

The GC Overhead Limit Exceeded error is an indication of a resource exhaustion i.e. memory. The JVM throws this error if the Java process spends more than 98% of its time doing GC and only less than 2% of the heap is recovered in each execution.


1 Answers

Fixed, I read all the others forum posts about the problem but no one said how to fix it on Eclipse. I found the fix here


EDIT: in case the link becomes dead, here's what you can do. Edit "eclipse.ini", and set something like that:

-XX:MaxPermSize=1024m -Xms512m -Xmx1024m 
like image 69
Silvio Avatar answered Oct 05 '22 11:10

Silvio