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

MongoDB allocate and free too much memory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.4.4
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      1) Insert 50000000 documents in the test collection.
      2) Query all documents with several client threads
      3) Check linux memory usage

      Show
      1) Insert 50000000 documents in the test collection. 2) Query all documents with several client threads 3) Check linux memory usage

      Description

      When few queries process many documents (for example, full collection scan),
      MongoDB allocate and deallocate too much memory. So after few full scan query, free memory of linux is decreased and eventually linux use swap space.

      Take a look at the attached graph.

      And this case happen very often. I think you can reproduce this case easily.

        Attachments

          Activity

            People

            Assignee:
            mark.agarunov Mark Agarunov
            Reporter:
            matt.lee Matt SeongUck Lee
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: