Home > database > Memory about mongodb3.4 confusion
Memory about mongodb3.4 confusion
Time:09-29
Hi, everybody, have a question want to ask next everybody, we recently will be directing from version 2.2.2 upgraded to 3.4.6 version, using WiredTiger engine, run after a period of time, found a few questions is not very understand,
The oplog data in the data total size (including local around 20 g) But through the top view of memory, 104 g
Question 1: why actual use memory is bigger than the storage memory so much? Question 2: I set up the boot parameters wiredTigerCacheSizeGB=100, but now use the memory more than 100 g, see website document, directing a memory has two parts, one is WiredTiger internal cache, one is the file system cache, wiredTigerCacheSizeGB parameter Settings should be an internal cache, that the entire mongo can use memory size by parameter Settings, if not set, it is not infinite memory (website said mongo automatically USES all free memory that is not 2 by the WiredTiger cache or by other the processes),
CodePudding user response:
You set the 100 g, the actual use 104 g this should be a normal WiredTigerCacheSizeGB just part after all, isn't it use all memory You can set the value is 50 g, see the effect, if only a little more than 50 or control This memory is the amount of data than you more normal, you can also try to add some more data and added to the 200 gb or more, look at it is memory