Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix this error "GC overhead limit exceeded in Eclipse"

How to fix this error "GC overhead limit exceeded in Eclipse". This problem was occurred when I used graphical layout from ADT android.

like image 584
issam Avatar asked Oct 24 '13 15:10

issam


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.

What is run garbage collector in eclipse?

To prevent applications running out of memory, objects in the Java heap that are no longer required must be reclaimed. This process is known as garbage collection (GC).

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

eclipse.ini file can be edited. Increase the values for memory usage. Please see the sample eclipse.ini file below.

--launcher.XXMaxPermSize
512M

-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m

--launcher.defaultAction
openFile

--launcher.appendVmargs

-showsplash

org.eclipse.platform

--launcher.XXMaxPermSize

512m

--launcher.defaultAction

openFile

--launcher.appendVmargs

-vmargs

-Dosgi.requiredJavaVersion=1.6

-Xms512m

-Xmx1024m

The changed area in Eclipse.ini file

like image 191
Varun Avatar answered Oct 11 '22 01:10

Varun