开发者

Is it possible to reduce the MongoDB memory usage?

I am undergoing testing with 64-bit MongoDB. If I configure large size backups then the MongoDB memory utilization seems to be high.

Is there any possibility to reduce the m开发者_运维技巧emory utilization by MongoDB.


Is it ideal that MongoDB is using 150 MB memory?


Update /etc/security/limits.conf

Add a line as below:

@mongodb - rss 33554432

and then save the file.

It will take effects right away.

In this example, we assign 32GB memory usage for mongodb group users


For Windows it seems possible to control the amount of memory MongoDB uses, see this tutorial at Captain Codeman:

Limit MongoDB memory use on Windows without Virtualization


Do you mean memory usage or disk space? If you are really talking about memory, then Mongo stores its data in memory-mapped files, giving the illusion of massive memory usage.

You will find more information here:

http://www.mongodb.org/display/DOCS/Checking+Server+Memory+Usage

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜