config use memory 7GB,and my server has other shading,collection local.oplog.rs has 164764738 records
configRS:SECONDARY> use local
switched to db local
configRS:SECONDARY> show tables;
me
oplog.rs
replset.election
replset.minvalid
startup_log
system.profile
system.replset
configRS:SECONDARY> db.oplog.rs.find().count()
164764738
I have the same problem now on version: 4.0.3-1.0.7. Also my config server takes over almost all of memory. The wiredTiger cache size is 1G limited.
It works well on docker with only allocate 2G memory long ago. But someday OOM happens and I have to increase the memory to at least 8G to prevent OOM again. Each of the two shard node only hold 30G data.
How is that happen? I really want to know what the memory is used for. Hope your help!