Reputation: 111
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 memory utilization by MongoDB.
Upvotes: 6
Views: 17073
Reputation: 21
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
Upvotes: 2
Reputation: 13819
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
Upvotes: 1
Reputation: 15757
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
Upvotes: 0