Mongodb副本集--Out of memory: Kill process 37325 (mongod)
生活随笔
收集整理的這篇文章主要介紹了
Mongodb副本集--Out of memory: Kill process 37325 (mongod)
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
Mongodb副本集--Out of memory: Kill process 37325 (mongod)
1.Mongodb副本集--Out of memory: Kill process 37325 (mongod)
場景描述:
恢復一個22TB數(shù)據(jù)的mongodb實例的時候.
將備用結點加入mongodb集群中,自動恢復數(shù)據(jù)實例的過程中。mongodb的系統(tǒng)日志報了如下錯誤:
Mongodb的日志
[rsSync] Index Build: 252298635/292298635 88%Linux的內核的日志:
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解決思路:
服務器為32GB內存,由于mongodb的重建索引的時候,吃掉所有內存,導致mongodb進程被殺掉。
增加服務器內存至64GB,正常恢復mongodb副本集。
轉載于:https://www.cnblogs.com/zhangshengdong/p/10113590.html
總結
以上是生活随笔為你收集整理的Mongodb副本集--Out of memory: Kill process 37325 (mongod)的全部內容,希望文章能夠幫你解決所遇到的問題。