Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1152

Memory leak in connection.ReadWireMessage

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Gone away
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Networking
    • None

    Description

      I'm trying to switch from mgo to the mongo-go-driver in a relatively simple oplog tailing application. After a few hours, I observe rather high resident memory (multiple GiB). When I take a heap profile, it's implicating connection.ReadWireMessage; specifically "c.readBuf = make([]byte, size)".

      This is somewhat similar to GODRIVER-951, but I believe that is caused by a different bug, because in my case, I'm only seeing 16 MiB blocks being allocated, as expected.

      Attachments

        Activity

          People

            divjot.arora@mongodb.com Divjot Arora (Inactive)
            bartle David Bartley
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: