Memory Error/500 Error when migrating from Java 7 to Java 8 on Google App Engine

谁说我不能喝 提交于 2019-12-24 10:56:06

问题


After Java 7 to 8 migration, your project may exhibit an increased 500 error rate and you may see this error:

Uncaught exception from servlet java.lang.OutOfMemoryError: Java heap space

回答1:


Each application running in the standard environment on Google App Engine has an instance class, which determines its compute resources.

A B2 instance class (or below) may no longer big enough and we recommend upgrading to a B4 instance.

For more information on instance classes, see https://cloud.google.com/appengine/docs/standard/#instance_classes

For instance class implementation details, see https://cloud.google.com/appengine/docs/standard/java/config/appref/#instance_class

For more information on concurrency and latency, see https://cloud.google.com/appengine/docs/standard/java/runtime/#concurrency_and_latency

For more tips on migrating to Java 8 on Google App Engine, see https://cloud.google.com/appengine/docs/standard/java/migrating-to-java8



来源:https://stackoverflow.com/questions/54246413/memory-error-500-error-when-migrating-from-java-7-to-java-8-on-google-app-engine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!