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

The 'Top' command managing its own data in the UsageMap is error prone which causes memory leaks

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Querying
    • Query Execution

    Description

      After diagnosing a customer issue (SERVER-45137) where Top was allocating memory to record collection information and not deallocating it once the collection was removed, I believe we should set out to improve the 'Top' command in regards to its data management.

      Forgetting to clear collection information from Top comes with consequences, such as running out of memory for long enough running processes. We should have a mechanism in Top that guarantees the collection information will be cleared once the collection is dropped. Making the Top data as a decoration on the collection is one way we could ensure this, it would even handle a collection rename for us.

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: