Mongodb terminates when it runs out of memory

安稳与你 提交于 2019-12-06 02:17:49
Simone Bronzini

Thanks to @AlexBlex's comment I solved my issue. Apparently the problem was that Docker limited the container's RAM to 8GB but the wiredTiger storage engine was still trying to use up 50% - 1GB of the total system RAM for it's cache (which in my case would have been 15 GB).

Capping wiredTiger's cache size by using this configuration option to a value less than what Docker was allocating solved the problem.

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