Google App Engine因内存不足而终止

时间:2019-07-11 09:23:25

标签: google-app-engine google-cloud-platform

我已经在Google App Engine上创建了一个处理图像的网络应用。该应用程序在本地运行良好,响应速度也非常快。但是在应用引擎上,它运行缓慢,并且经常因以下错误而崩溃。

While handling this request, the process that handled this request was found to be using too much memory and was terminated. This is likely to cause a new process to be used for the next request to your application. If you see this message frequently, you may have a memory leak in your application or may be using an instance with insufficient memory. Consider setting a larger instance class in app.yaml.

在阅读中,我看到了一些有关升级实例的建议,已经这样做了,已经升级了instance_class: F2,但仍然没有成功。我的本地笔记本电脑可以做得更好。为什么?我该如何解决?请帮忙。

1 个答案:

答案 0 :(得分:1)

与现代笔记本电脑相比,即使F2实例类的资源分配也相对较小。

您可能不得不进一步增加费用,以为会增加成本。

您可以检查每个实例类in the documentation的资源分配