Last post Oct 09, 2019 02:03 PM by PatriceSc
Oct 09, 2019 12:49 PM|kedarkdr|LINK
I am using HttpClientFactory.CreateClient() to make http request, however HttpClientFactory takes time / freezes when load test with 50+ concurrent threads is done. This happens only when if there are 0 open connections.
The freeze or delay is seen for couple of minutes and in task manager the thread count of dotnet.exe keeps increasing and once it reaches 80-90 threads then the http requests happen. Does this mean there is some race condition while creating first client?
Any inputs are appreciated.
Oct 09, 2019 01:49 PM|mgebhard|LINK
Share your code if you want the community to review your code. Otherwise the community can only guess.
Oct 09, 2019 02:03 PM|PatriceSc|LINK
To the same host name? It's always worth to have a look at how it works at a lower level and if I remember you have a "per destination" queue at the OS level.
It's not always obvious to write a test that produces a realistic load (for example having 50 users on your site doesn't mean you have 50 active db or socket connections, usually you have much less as not all users are doing the same thing at the same time
and this kind of resource is "pooled").