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

v8 leaks several external objects

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.4.0-rc2
    • Affects Version/s: 2.3.2
    • Component/s: JavaScript
    • None
    • ALL
    • Hide

      Paste code from description into shell, or into dbEval.

      Show
      Paste code from description into shell, or into dbEval.
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      This was encountered while debugging a memory leak in v8, and can be reproduced in the shell or server w/ db.eval().

      var mongo = new Mongo();
      for (var i = 0; i<10000; i++) {
          var res = mongo.find("test.a", {b:new Array(10240).toString()}, {a:1}, 0, 0, 0, 0);
      }
      gc();
      

            Assignee:
            benjamin.becker Ben Becker (Inactive)
            Reporter:
            benjamin.becker Ben Becker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: