Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded in GWT application
google-app-engine, gwt, java
Solution
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.
NOTE: In Ideal Intellij 12+ The project settings is in : File -> Project Structure OR Ctrl+Alrt+Shitf+S
Problem
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. here is the main error `Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded`.