Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to reduce the MongoDB memory usage?

Tags:

mongodb

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.

like image 962
sampathkumar Avatar asked Feb 16 '11 15:02

sampathkumar


People also ask

Does MongoDB use a lot of memory?

And by default, MongoDB will reserve 50% of the available memory – 1 GB for the WiredTiger cache or 256 MB whichever is greater. For example, a system with 16 GB of RAM, would have a WiredTiger cache size of 7.5 GB. The size of this cache is important to ensure WiredTiger is performant.

Does MongoDB have in memory cache?

Does MongoDB handle caching? Yes. MongoDB keeps most recently used data in RAM.

How much disk space does MongoDB use?

Starting in MongoDB 3.4, the default WiredTiger internal cache size is the larger of either: 50% of (RAM - 1 GB), or. 256 MB.

How can you check the amount of mapped memory that MongoDB is using?

You can inspect mem. mapped to check the amount of mapped memory that mongod is using. If this value is greater than the amount of system memory, some operations will require a page faults to read data from disk.


1 Answers

Is it ideal that MongoDB is using 150 MB memory?

like image 86
Andreas Jung Avatar answered Oct 23 '22 03:10

Andreas Jung