Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded in GWT application

I am developing an application with GWT and GAE. When I try to rebuild it or create an artifact I get a lot of errors shown below in the picture.

I searched google and Stack Overflow and I got some answers but not to my particular problem.

From what I understand I get the error because my garbage collector consumes a lot of memory.

enter image description here

here is the main error Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded.

like image 616
Adelin Avatar asked Jun 18 '12 21:06

Adelin


People also ask

How do I fix Java Lang OutOfMemoryError GC overhead limit exceeded?

The "java. lang. 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 went wrong out of memory GC overhead limit exceeded?

GC Overhead Limit Exceeded ErrorIt'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.


1 Answers

OK, I fixed the problem. just increase the memory that the virtual machine needs to compile the project. Previously it was 128 and now I change it be 512. as my project grown it needed more memory to compile the classes of the project.Here is how to do that in Injtellj IDEA. right click on the project module -> open module settings -> Modules -> GWT -> compiler maximum heap size (Mb) -> changed to 512.

enter image description here

NOTE: In Ideal Intellij 12+ The project settings is in : File -> Project Structure OR Ctrl+Alrt+Shitf+S

like image 141
Adelin Avatar answered Sep 27 '22 19:09

Adelin