发布请求上的 GAE 软私有内存限制错误 [英] GAE Soft private memory limit error on post requests

查看:18
本文介绍了发布请求上的 GAE 软私有内存限制错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个使用 Google 应用引擎付费服务的应用程序.在应用程序中,我正在解析一个大型 xml 文件并尝试将数据提取到数据存储区.但是在执行此任务时,GAE 向我抛出了如下错误.
我还尝试通过将前端实例类从 F1 增加到 F2 来更改性能设置.

I am working on an application where I am using the paid services of Google app engine. In the application I am parsing a large xml file and trying to extracting data to the datastore. But while performing this task GAE is throwing me an error as below.
I also tried to change the performance setting by increasing frontend instance class from F1 to F2.

错误:在服务 14 个请求后,超过了 128 MB 的软专用内存限制和 133 MB.处理完这个请求后,发现处理这个请求的进程占用了太多内存,被终止了.这可能会导致一个新进程被用于对您的应用程序的下一个请求.如果您经常看到此消息,则您的应用程序可能存在内存泄漏.

ERROR: Exceeded soft private memory limit of 128 MB with 133 MB after servicing 14 requests total. After 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.

提前谢谢你.

推荐答案

当您遇到 Exceeded soft private memory limit 错误时,您有两种选择:

When you face the Exceeded soft private memory limit error you have two alternatives to follow:

  1. 将您的实例升级到更强大的实例,这将为您提供更多记忆.
  2. 减少您在每个请求中处理的数据块.您可以将 XML 文件拆分为更小的部分,并让较小的实例继续工作.
  1. To upgrade your instance to a more powerful one, which gives you more memory.
  2. To reduce the chunks of data you process in each request. You could split the XML file to smaller pieces and keep the smaller instance doing the work.

这篇关于发布请求上的 GAE 软私有内存限制错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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