线程“主”中的异常java.lang.OutOfMemoryError:在GWT应用程序中超出了GC开销限制 [英] Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded in GWT application

查看:373
本文介绍了线程“主”中的异常java.lang.OutOfMemoryError:在GWT应用程序中超出了GC开销限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用GWT和GAE开发一个应用程序。当我尝试重建它或创建工件时,我会在图片中看到很多错误。



我搜索了google和Stack Overflow,但得到了一些答案,但没有到我的特殊问题。

从我理解我得到的错误,因为我的垃圾回收器消耗大量的内存。





主线程main中的异常异常java.lang.OutOfMemoryError:超出GC开销限制

解决方案

好的,我解决了这个问题。只需增加虚拟机编译项目所需的内存。以前它是128,现在我改变它是512.随着我的项目的增长,它需要更多的内存来编译项目的类。以下是在Injtellj IDEA中如何做到这一点。右键点击项目
模块 - >打开模块设置 - >模块 - > GWT - >编译器最大堆大小(Mb) - >改为512.



注意:在理想Intellij 12+项目设置在:文件 - >项目结构或Ctrl + Alrt + Shitf + S


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.

解决方案

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

这篇关于线程“主”中的异常java.lang.OutOfMemoryError:在GWT应用程序中超出了GC开销限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆