NDB not clearing memory during a long request

牧云@^-^@ 提交于 2019-11-30 14:21:48

We had similar issues (with long running requests). We solved them by turning-off the default ndb cache. You can read more about it here

In our case this was caused by AppEngine Appstats enabled.

After disabling, the memory consumption is back to normal.

You could call gc.collect() at the start of each request.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!