App Engine:我看到 500 状态和 204 错误代码

App engine: I'm seeing 500 status and 204 error code

我看到很多响应代码为 500 的请求。文件日志只有一行:

A problem was encountered with the process that handled this request, causing it to exit. This is likely to cause a new process to be used for the next request to your application. (Error code 204)

另外,我可以看到奇怪的应用引擎自动日志行。我正在使用 Python 2.7 线程和 5 个空闲实例:

190.210.97.5 - - [04/Sep/2015:10:00:21 -0700] "POST /api/v1/ecclaro/sondeos/event HTTP/1.1" 500 0 - "Java/1.6.0_24" "xxxxxxxxxxx.appspot.com" ms=4301 cpu_ms=0 pending_ms=942 exit_code=204 instance=00c61b117c96c7c9c0bec141a97c4d4f8ebb5189 app_engine_release=1.9.26

当我的应用程序的流量增加时,这种情况更常发生。并且经常发生在某些资源上。我不知道该怎么做。因为我看不到低级错误日志。我的假设是 python 的运行时失败,但我不知道。

有人有什么想法吗?

此致

This issue and discussion 表明这很可能是 运行 内存不足的问题。