Mongodb副本集--Out of memory: Kill process 37325 (mongod)
生活随笔
收集整理的這篇文章主要介紹了
Mongodb副本集--Out of memory: Kill process 37325 (mongod)
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
Mongodb副本集--Out of memory: Kill process 37325 (mongod)
1.Mongodb副本集--Out of memory: Kill process 37325 (mongod)
場(chǎng)景描述:
恢復(fù)一個(gè)22TB數(shù)據(jù)的mongodb實(shí)例的時(shí)候.
將備用結(jié)點(diǎn)加入mongodb集群中,自動(dòng)恢復(fù)數(shù)據(jù)實(shí)例的過(guò)程中。mongodb的系統(tǒng)日志報(bào)了如下錯(cuò)誤:
Mongodb的日志
[rsSync] Index Build: 252298635/292298635 88%Linux的內(nèi)核的日志:
Dec 28 13:09:30 localhost kernel: Out of memory: Kill process 37325 (mongod) score 632 or sacrifice child Dec 28 13:09:30 localhost kernel: Killed process 37325, UID 0, (mongod) total-vm:35597613460kB, anon-rss:1752kB, file-rss:516kB解決思路:
服務(wù)器為32GB內(nèi)存,由于mongodb的重建索引的時(shí)候,吃掉所有內(nèi)存,導(dǎo)致mongodb進(jìn)程被殺掉。
增加服務(wù)器內(nèi)存至64GB,正常恢復(fù)mongodb副本集。
轉(zhuǎn)載于:https://www.cnblogs.com/zhangshengdong/p/10113590.html
總結(jié)
以上是生活随笔為你收集整理的Mongodb副本集--Out of memory: Kill process 37325 (mongod)的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。