I have too many errors in my app and the response time is too high.
The only clue for what is the problem is this method and class
recv(System.IntPtr, System.Byte*, int, System.Net.Sockets.SocketFlags) System.Net.UnsafeNclNativeMethods+OSSOCK
I searched in the forum for how get more information but I can't implement any solution...
Can you help me ?
I attach examples img.
Solved! Go to Solution.
This simply means that the thread is waiting for a WebRequest to complete. If you do synchronous outgoing WebRequests in an ASP.NET Application, this can quickly lead to an exhausted thread pool which will make other incoming WebRequests to be queued in IIS.
Andreas Grabner wrote an excellent blog post about exactly this problem: https://www.dynatrace.com/blog/bad-microservice-pa...
The solution would be to use async/await for outgoing WebRequests.