patternMinor
Limit the RAM memory usage in MongoDB
Viewed 0 times
thelimitmongodbusagememoryram
Problem
I am using MongoDB-2.6.1. Is there any way to limit the RAM memory usage?
For example: Out of 4 GB RAM, let MongoDB use till 3 GB (<= 3 GB).
For example: Out of 4 GB RAM, let MongoDB use till 3 GB (<= 3 GB).
Solution
If you are running on Linux, you can use control groups to limit MongoDB memory as shown in the following article:
Easy Steps to Limit Mongodb Memory Usage by Ramakanta Sahoo
On Windows, a similar technique using the Windows System Resource Manager is described in:
Limit MongoDB memory use on Windows without Virtualization by Simon Green
Easy Steps to Limit Mongodb Memory Usage by Ramakanta Sahoo
On Windows, a similar technique using the Windows System Resource Manager is described in:
Limit MongoDB memory use on Windows without Virtualization by Simon Green
Context
StackExchange Database Administrators Q#86109, answer score: 5
Revisions (0)
No revisions yet.