Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-14777

Option to limit physical memory used by a MongoD process

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • 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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            justanyone Kevin J. Rice
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: