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

Update Mongod init scripts to set unlimited locked memory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: 3.2.16, 3.4.7, 3.5.12
    • Fix Version/s: 3.2.19, 3.4.11, 3.6.0-rc0
    • Component/s: Packaging
    • Labels:
      None
    • Environment:
      Linux
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v3.4, v3.2
    • Sprint:
      Build Ready
    • Case:
    • Linked BF Score:
      0

      Description

      MongoDB 3.2+ introduced the secure allocator.

      This can be used by both the encrypted storage engine and during authentication. With a low locked memory ulimit the following error can cause a crash.

      Failed to mlock: errno:12 Cannot allocate memory
      Fatal Assertion 28832

      I propose updating all init.d/systemctl scripts to automatically set an unlimited locked memory ulimit for mongod.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: