Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-1783

Memory Leak when Load Testing

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

      Hi, I'm a newbie on rust here.

      I'm start using Actix-web for my server to provide CRUD API with MongoDB. But I'm facing problem with a memory leak when doing load test on docker container.

      TEST - Get mock list 10 users with concurrency125 for 1 minute -> the memory is rising up and never goes down,

      And if i run a test for 3 minutes, my server was killed due to out of memory.

      Here is my code

      `main.rs`

      `databases/mongo.rs`

      `models/user.rs`

      `route_handlers`

      `Cargo.toml`

      What am I doing wrong here? How can I fix it? Please help.

      Thank you.

        1. image-2023-10-30-05-09-57-919.png
          image-2023-10-30-05-09-57-919.png
          58 kB
        2. image-2023-10-30-05-36-55-357.png
          image-2023-10-30-05-36-55-357.png
          48 kB
        3. image-2023-10-30-05-37-34-221.png
          image-2023-10-30-05-37-34-221.png
          32 kB
        4. image-2023-11-01-23-36-08-316.png
          image-2023-11-01-23-36-08-316.png
          59 kB
        5. image-2023-11-01-23-36-21-364.png
          image-2023-11-01-23-36-21-364.png
          46 kB

            Assignee:
            abraham.egnor@mongodb.com Abraham Egnor
            Reporter:
            kaizer104@gmail.com Narongchai Khamchuen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: