Mongodb memory usage?

  mongodb, question

Lz now wants to use mongodb2.6 as data storage. After looking at the memory occupation of mongodb and mysql in the virtual machine, mongodb can occupy about 5M less than mysql by default, but I don’t know if it is still the case when the data volume and io are large, can you give some suggestions?

What you care about should not be who takes up more than 5M of memory, but who can better and faster process your database read and write requests. MySQL is not very familiar to me, MongoDB uses memory mapping, and your data will remain in memory until the memory is full. Therefore, it is generally not recommended to run other processes on the Mongo server because mongo can use all your memory. The advantage is that if you have enough memory to hold all the data, then the reading and writing performance will be much better.