Is it ideal that MongoDB is using 150 MB memory?

◇◆丶佛笑我妖孽 提交于 2019-12-03 07:44:41
Justin Jenkins

"Using" that much memory isn't as bad as it seems ... MongoDB will (at least seem to) use up a lot of available memory, but it leaves it up to the OS's VMM to tell it to release the memory when need. (see Caching in the MongoDB docs.)

For the most part it's "using" that memory for cache, which dramatically speeds things up.

You should be able to release any and all memory by restarting MongoDB.

However, to some extent MongoDB isn't really actively "using" the memory ... read on for a lot more details in this anwser ..

How to release the caching which is used by Mongodb?

Memory management is soley up to the OS.

Read

http://blog.mongodb.org/post/101911655/mongo-db-memory-usage

There is basically no way right now to influence the memory usage....and mentioned: learn about memory-mapped files and don't mix up the memory usage of memory mapped files with the actual memory usage.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!