- docker运行MongoDB,针对于docker容器来进行内存资源的限制
- 修改MongoDB的运行配置文件,并且重启mongodb
storage:
dbPath: /var/lib/mongodb
journal:
enabled: true
# engine:
mmapv1:
smallFiles: true
wiredTiger:
engineConfig:
configString : cache_size=160M
转载:https://www.cnblogs.com/jojoword/p/11448823.html
限制mongoDB内存的方法
标签:lib ref enable tor logs word enabled 容器 方法