-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Internal Code, Sharding, Stability
-
None
Add rss memory-limit option to mongod (via conf file and/or command line), specifying the maximum amount of physical memory that a mongod instance will keep resident (RSS size).
MongoD instances will use all available memory on a machine, requesting as much as possible and paging it in as necessary.
On servers with multiple additional processes, having a mongod process gobble up all available memory is not "playing well with peers", as they say in kindergarten.
This limit would specify the maximum memory allotment to keep resident in either megabytes or gigabytes.
NOTE that technically Linux has a ulimit -m for RSS size, this limit is completely ignored as of Linux kernel version 2.4.x.
If the solution is implementing Linux 'control groups' (supposedly to be standard in RHEL 7.x), this might be a documentation problem. However, until then, and for people running pre RHEL-7.x, a documentation solution or a mongod startup option solution is required.
- duplicates
-
SERVER-2513 Ability to limit amount of resident memory that MongoDB can utilize
- Closed
-
SERVER-219 Ability to configure max memory
- Closed