Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-1883

Using the async driver, no references should remain to a callback after it has been called back

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.0
    • Affects Version/s: 3.0.0
    • Component/s: Async
    • None

      When using the async API, we have noticed an increase in memory use when executing queries that collect a large amount of documents. A heap dump analysis shows that the connection keeps a reference to a callback, even after it has been called. As the connection itself will be pooled, this may lead to memory "leak" issues, especially when the connection pool is configured to a large maximum size.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            peterhendriks Peter Hendriks
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: