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

Automatically garbage collect JS

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • JavaScript, Shell
    • None
    • Fully Compatible
    • ALL

    Description

      When connections (Mongo instances in the shell) are null'd they are not automatically garbage collected, as an example. There are probably other examples out there too.

      > gc()
      > db.serverStatus().connections.current
      2
      > var m2 = new Mongo()
      > db.serverStatus().connections.current
      3
      > var m2 = null
      > db.serverStatus().connections.current
      3
      > gc()
      > db.serverStatus().connections.current
      2

      Attachments

        Activity

          People

            Unassigned Unassigned
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: