Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-3054

C# driver memory leak

    • Type: Icon: Task Task
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.10.3
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows 10 x64

      Memory leak in the MongoDB .NET driver.

      Our team has noticed some memory issues in our application. We have been performing some memory profiling tests and have noticed that after a large query the BsonChunkPool object will stay around without being GC. 

      I've created a sample app to demonstrate the issue. Once you run the app, use the seed data button, and then fetch the data. If you have a memory profiler running you should see that the BsonChunkPool is not deleted. https://github.com/Beastw00d/MongoWebApp

      We have been using dotMemory as our memory profiler. I've attached an image of the profiler from the demo app. The BsonChunkPool takes up 7.88 MB (top right of image). In our real app it takes 35 MB and up.

       

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            chrisbeastwood@gmail.com Christopher Eastwood
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: