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

Update Mongod init scripts to set unlimited locked memory

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical - P2
    • Resolution: Fixed
    • 3.2.16, 3.4.7, 3.5.12
    • 3.2.19, 3.4.11, 3.6.0-rc0
    • Packaging
    • None
    • Linux
    • Fully Compatible
    • ALL
    • v3.4, v3.2
    • Build Ready
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: