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

MongoDB allocate and free too much memory

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.4.4
    • Component/s: None
    • Labels:
      None
    • ALL
    • 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

      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.

            Assignee:
            mark.agarunov Mark Agarunov
            Reporter:
            sunguck.lee@gmail.com 아나 하리
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: