2014-12-02 88 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

相關問題