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

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

问题描述

我正在使用Google App Engine的付费服务的应用程序上工作.在应用程序中,我正在解析一个大型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.

谢谢.

推荐答案

当您遇到超出软私有内存限制错误时,有两种选择可以遵循:

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