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

MongoDB allocate and free too much memory

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major - P3 Major - P3
    • None
    • 3.4.4
    • None
    • 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

    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

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

            Dates

              Created:
              Updated:
              Resolved: