-
Type: Improvement
-
Resolution: Won't Do
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.7.0
-
Component/s: Performance
-
None
Hello there.
We have a weird situation in a production environment.
MongoDB 4.0.2
C# driver 2.7.0 (Legacy)
Our software uses currently 64 threads to work with MongoDB and everything is good, but we've migrated to more powerfull software and want to use 128 threads.
When we try to do set amount of threads to 128 the server hangs with 100% CPU consumption.
Using dotTrace we've found that it is AcquireSession and ReleaseSession calls of ConnectionPool.
in mongodb connection string we've tried to set maxPoolSize to 500 and it supposed to help, but it doesn't. Whatever we've tried to set in connection string - it is not working as expected and CPU usage is still 100%.
It seems like it is sort of problem with connection pooling, but currently we didn't figured out how to fix it.
Please, see file attached for dotTrace logs.
Any recommendations much appreciated.
Thanks,
Valentin