Automatically garbage collect JS

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: JavaScript, Shell
    • None
    • Fully Compatible
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
      

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

              Created:
              Updated:
              Resolved: