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

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

问题描述

我的应用程序的用户试图使用我的应用程序将文件作为电子邮件附件发送。然而,这样做提出了以下例外,我无法破译

超过软性私有内存服务
之后限制为192.023 MB请求总额

处理此请求时,处理此请求的过程是
,它被发现使用的内存过多并被终止。这很可能导致
导致一个新的进程被用于下一个请求到您的应用程序。

如果您经常看到此消息,您可能会在
应用程序中发生内存泄漏。

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

解决方案

软专用内存限制是App Engine将停止实例接收更多请求的内存限制,等待任何未完成的请求,并终止实例。当你使用太多的内存时,可以把它看作是一种优雅的关闭。



一段时间内一直处于软限制状态是可以的,因为所有的请求都应该完成。但是,每次发生这种情况时,您的下一个请求可能会启动一个新的实例,这可能会延迟影响。

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?

解决方案

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天全站免登陆