Chapter 7. Reducing Long Wait Times
If the server is not running out of memory, CPU capacity, or threads and requests are still taking long to complete, chances are that the server has to wait too long for off-box resources, such as the database.
In this chapter, we'll cover the following topics:
How to measure the wait times for each off-box resource using custom counters
Waiting concurrently instead of sequentially
Improving session state performance
Reducing thread-locking delays
One major source of delays is database access, which is discussed in Chapter 8,
Measuring wait times
We can use a number of ways to find out which external requests are most frequent and how long the site has to wait for a response:
Run the code in the debugger with breakpoints around each external request. This will give you a quick hint of which external request is the likely culprit. However, you wouldn't do this in a production environment, as it only gives you information for a few requests.
Use the Trace class...