Is it possible to reduce the MongoDB memory usage?

16,431

Solution 1

Is it ideal that MongoDB is using 150 MB memory?

Solution 2

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

Solution 3

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

Share:
16,431
sampathkumar
Author by

sampathkumar

Updated on June 05, 2022

Comments

  • sampathkumar
    sampathkumar almost 2 years

    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.