title: SQL Server 2005 Network IO Wait Times (ASYNC_NETWORK_IO Wait Type) Problem
body: <p>We are having performance issues on our web app during peak times, which is currently split between one 2003 IIS6 Web Server, and one SQL Server 2005 DB Server. The query times on the DB server look fine (around 30ms), and the CPU is low (under 20%), yet queries can take a long time to execute on the web server (over 1 second).</p>
  
  <p>I was looking in perfmon for clues, and saw that the Average Network IO wait time is ~400ms, which could well explain the performance difference. I also ran some queries inside SSMS and see that every second there are roughly 10,000ms of cumulative ASYNC_NETWORK_IO Wait Types.</p>
  
  <p>From some research, it seems that the problem is either insufficient Network capacity, or that the web server isn't processing the results fast enough. How do I go about investigating which it is, and then resolving?</p>
  
  <p>We use NHibernate for our data layer, so there are no DataReaders used as far as I know. There are no known queries that return large results sets, although there is one table that has a column containing compressed XML documents.</p>
  
  <p>Thanks in advance</p>
  
  <p><strong>Additional Requested Information</strong></p>
  
  <ul>
  <li>Sql Server is set up to use TCP/IP
  and Shared Memory protocols</li>
  <li>We make around 4 DB requests per page, nothing ridiculous</li>
  <li>At peak time DB Server sends 1.5MB/sec</li>
  <li>At peak, Web server CPU is around 60%</li>
  <li>AT peak, Web server NIC load is 13MB/sec. 8MB is sending, 5MB is receiving. The same NIC handles SQL and HTTP traffic</li>
  <li>We do use some caching but the application is pretty dynamic so requires up to date data most of the time</li>
  </ul>