Closed jrichardsz closed 3 years ago
This is an expected error if you're doing stress testing that sends data to the server very slowly. Or if you open too many new connections and overload the server so it can't process them all in time.
This error can be a symptom of thread pool starvation.
Can you try running your app with dotnet counters and collecting event counters? That'll help validate our hypotheses on starvation.
The simplest thing to try is: dotnet-counters collect --format json --counters System.Runtime,Microsoft.AspNetCore.Hosting -- dotnet myapp.dll
This is an expected error if you're doing stress testing that sends data to the server very slowly. Or if you open too many new connections and overload the server so it can't process them all in time.
This error can be a symptom of thread pool starvation.
"stress testing that sends data to the server very slowly"... that is not my case. My rest endpoint supports 500 invocations in a sequence mode with an average response time of 1500 milliseconds. But if I try the same endpoint but in parallel mode, does not support even 20 users. More than 20 users, the indicated error begins to appear
If my goal is Set up my c# rest api with optimal parameters to support high user concurrency how Can I increase the thread pool to prevent starvation?
Thanks for your time
Can you try running your app with dotnet counters and collecting event counters? That'll help validate our hypotheses on starvation.
The simplest thing to try is:
dotnet-counters collect --format json --counters System.Runtime,Microsoft.AspNetCore.Hosting -- dotnet myapp.dll
I will configure this on my dockerfile. Does this create a file called counter.json?
Thanks for your time
Does this create a file called counter.json?
Yep, looking forward to the results!
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.
See our Issue Management Policies for more information.
Describe the bug
Netcore rest api shows this error when the service is stress tested: Reading the request body timed out due to data arriving too slowly. See MinRequestBodyDataRate
To Reproduce
Exceptions (if any)
Further technical details
Precedents
There are two equal issues which were closed :(