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

Bson.IO.Bytebuffer never dispose

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.5
    • Component/s: API, BSON
    • Labels:

      I Have an application using mongodb,for data storage,
      but when request in my application grow,application memory grow too,and when load going down memory not released , i going to check application with memory profiler application(ANTS
      memory profiler) when check the result i saw Bson.IO.Bytebuffer instance get the all memory

      iam using replica set with three server,.net application,and one static instance for mongo client
      for all thread,

      my connection settings in application

      var mongoSetting = new MongoClientSettings()
      {
      MaxConnectionPoolSize = 7500,
      Servers = mongoServerAddress,
      ConnectionMode = ConnectionMode.ReplicaSet,
      ReplicaSetName = "switch",
      ClusterConfigurator = builder =>

      { builder.ConfigureCluster (settings => settings.With(serverSelectionTimeout: TimeSpan.FromSeconds(2))); }

      ,

      };

      the image attached is the result of ANTS application

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            sohil_ww soheil karami
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: