I have a simple ASP.Net MVC application which is deployed in IIS. I ran a sample load test on this app. I have response times recorded in my application. When i compare the response time in application with IIS response time, IIS response times are too higher than my application logs.
What I understand from this is, IIS does not have enough worker threads to process the requests and keeps the requests on hold. This hold time is also recorded as part of IIS response time.
Is my understanding correct. If yes, how do I increase worker threads so that the overall through put is increased.
I tried the below steps to increase worker threads, but I did not see any impact after changes. https://support.microsoft.com/en-us/help/821268/contention-poor-performance-and-deadlocks-when-you-make-calls-to-web-s
Regards
If your server is saturated (maxed-out) with the current requests, it would probably be a bad idea to add more threads. This will simply create more contention for resources and make the problem worse.
When your server is receiving too many requests at once, and it is exceeding its capacity, IIS will queue requests to relieve presssure, until the current requests can complete.
Your tests have simply revealed the capacity of your system. At this point, if your capacity is not high enough, you need to consider an optimization strategy or consider other options like "scaling-up" or "scaling-out".