Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-5993

Possible memory leak in v6.4.0

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.5.0
    • Affects Version/s: 6.4.0
    • Component/s: None
    • 2
    • 2
    • Not Needed
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      We've just had to roll back our mongodb driver from v6.4.0 to v6.3.0 because of a memory leak.

      Possibly related to https://github.com/mongodb/node-mongodb-native/pull/3948 

      Specifically may be related to the Connection.aborted promise?

      I took a heap snapshot, which shows >500MB (72%) of our heap spent on Connection objects, and Promises (see attached screenshots)

      I sadly can't upload the heap because of the size, and because it will contain customer data, but I'm happy to poke around in it if it's helpful?

       

            Assignee:
            neal.beeken@mongodb.com Neal Beeken
            Reporter:
            alec@reedys.com Alec Gibson
            Bailey Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: