【发布时间】:2012-03-09 01:12:07
【问题描述】:
我的应用程序的用户尝试使用我的应用程序将文件作为电子邮件附件发送。但是,这样做会引发以下我无法解读的异常
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.
什么是“软私有内存限制”以及可能导致此异常的原因是什么?
【问题讨论】:
-
看起来 GAE 对运行应用程序的进程可以使用的内存量施加了限制。您的应用程序超出了此限制(可能是通过尝试在缓冲区中保存一个非常大的附件?),因此系统对其采取了措施。我感到困惑的唯一部分是消息说进程已“终止”,那么这个异常是在哪个执行线程中引发的?
-
@SteveJessop AFAIK,该进程被允许在被终止之前完成其最后一个请求。
标签: python google-app-engine memory-management python-2.7