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

High Memory Usage on InsertMany and InsertManyAsync

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • 2.14.1
    • Affects Version/s: None
    • Component/s: Operations
    • None

      I have a basic .NET 6 Application which generates GUID and insert into MongoDB which is running on my local Docker container.

      The problem I am having is memory usage of C# application is increasing enormously. 

      Here is the insert logic:

      I have reviewed memory usage on Visual Studio 2022 Community edition. 

      Here is the memory usage and CancellationTokenSource+CallbackNode is equals to the number of documents inserted to mongodb.

        1. image-2021-11-27-23-16-55-836.png
          103 kB
          Metin N/A
        2. image-2021-11-27-23-19-21-371.png
          29 kB
          Metin N/A
        3. image-2021-11-28-09-36-21-561.png
          138 kB
          Metin N/A
        4. image-2021-11-28-09-37-06-162.png
          214 kB
          Metin N/A
        5. image-2021-11-28-10-13-04-151.png
          204 kB
          Metin N/A
        6. image-2021-11-28-10-20-35-963.png
          149 kB
          Metin N/A
        7. image-2021-11-28-10-24-15-578.png
          156 kB
          Metin N/A
        8. image-2021-11-28-10-31-13-576.png
          159 kB
          Metin N/A

            Assignee:
            boris.dogadov@mongodb.com Boris Dogadov
            Reporter:
            dikbas.metin@gmail.com Metin N/A
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: