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

Update Mongod init scripts to set unlimited locked memory

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • 3.2.19, 3.4.11, 3.6.0-rc0
    • Affects Version/s: 3.2.16, 3.4.7, 3.5.12
    • Component/s: Packaging
    • None
    • Environment:
      Linux
    • Fully Compatible
    • ALL
    • v3.4, v3.2
    • Build Ready
    • 0

      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.

            Assignee:
            mathew.robinson@mongodb.com Mathew Robinson (Inactive)
            Reporter:
            kevin.arhelger@mongodb.com Kevin Arhelger
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: