The mongodb memory is too large, causing the system to crash

The mongodb memory is too large, causing the system to crash

在docker-compose file里添加 mem_limit: 10g 重启mongodb
原因分析:mongodb默认是读写一次就缓存到内存一次,默认使用内存上限是0.5*(最大内存-1)G,需要修改配置文件里的缓存限制

Guess you like

Origin blog.csdn.net/jinba225/article/details/117714903