什么是“软私有内存限制"?在 GAE 中? [英] What is the "soft private memory limit" in GAE?

查看:17
本文介绍了什么是“软私有内存限制"?在 GAE 中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序的用户尝试使用我的应用程序将文件作为电子邮件附件发送.但是,这样做引发了以下异常,我无法破译

A user of my application attempted to send a file as an email attachment using my application. However, doing so raised the following exception which I'm having trouble deciphering

Exceeded soft private memory limit with 192.023 MB after servicing 
2762 requests total

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.

什么是软私有内存限制"以及可能导致此异常的原因是什么?

What is the "soft private memory limit" and what was likely to bring about this exception?

推荐答案

软私有内存限制"是 App Engine 将停止实例接收更多请求、等待任何未完成请求并终止的内存限制实例.当您使用过多内存时,可以将其视为正常关机.

The "soft private memory limit" is the memory limit at which App Engine will stop an instance from receiving any more requests, wait for any outstanding requests, and terminate the instance. Think of it as a graceful shutdown when you're using too much memory.

偶尔达到软限制是可以的,因为您的所有请求都会按预期完成.但是,每次发生这种情况时,您的下一个请求可能会启动一个新实例,这可能会产生延迟影响.

Hitting the soft limit once in a while is ok since all your requests finish as they should. However, every time this happens, your next request may start up a new instance which may have a latency impact.

这篇关于什么是“软私有内存限制"?在 GAE 中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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