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,Speeding up Database Access.

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 ...

Get ASP.NET Site Performance Secrets now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.