2014-12-02 86 views
1

------------部署前端------------java.lang.OutOfMemoryError:Java堆空间,同时部署GWT应用到谷歌应用程序引擎

准备部署:

Created staging directory at: '/var/folders/14/l6tq2_1x17s0p1bcq5nsqphwthd17d/T/appcfg2818721238209183883.tmp' 

扫描jsp文件。

java.lang.OutOfMemoryError:Java堆空间

,同时部署我的应用程序从Eclipse的Google App Engine上会出现此错误。

+0

增加堆值。什么是当前堆值? – 2014-12-02 12:20:21

+0

当我在笔记本电脑上运行时,这不是问题。将问题部署到GAE时出现问题 - – carora3 2014-12-02 12:21:27

+0

是的,它是您尝试部署应用程序的服务器问题。检查您尝试部署的系统的堆内存并增加此内存。 – 2014-12-02 12:23:02

回答

1

无论你的项目使用到谷歌应用程序引擎内多堆空间...

Try to reduce the memory your application needs or purchase an instance which is more expensive...

Select another "Frontend class" as described here (the more memory the more heap):

https://cloud.google.com/appengine/docs/adminconsole/performancesettings

......或者,如果在部署发生错误(你的情况)你需要增加堆空间的java被允许在你的主机系统上使用。在这里阅读更多:

Increase heap size in Java ...

...和日食的具体说明在这里看到:爪哇

https://wiki.eclipse.org/FAQ_How_do_I_increase_the_heap_size_available_to_Eclipse

+1

这是一个部署错误,而不是运行时错误。所以这绝对是当地的问题。 – 2014-12-02 14:47:10

+0

你是对的!我仍然发布了所有可能性,因为这些评论在仓促中有点混乱;)。看起来好像是OP部署以来,它与本地设置无关。但这是不正确的。我编辑了我的文章,以便突出显示与他的问题有关的重要事情。 – 2014-12-02 14:57:36

相关问题