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

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

问题描述

我正在使用 GWT 和 GAE 开发应用程序.当我尝试重建它或创建一个工件时,我得到了很多错误,如下图所示.

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.

我搜索了 google 和 Stack Overflow,我得到了一些答案,但不是针对我的特定问题.

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.

这里是主要的错误Exception in thread "main" java.lang.OutOfMemoryError: GC开销限制超出.

推荐答案

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

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.

注意:在 Ideal Intellij 12+ 中,项目设置位于:文件 -> 项目结构或 Ctrl+Alrt+Shitf+S

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

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