We are connecting to an SQL Server 2008 on another box using PHP 5.3 and pdo_dblib.
Periodically (10+ times a day randomly throughout the day) we experience 3 minute periods where all SQL Select queries will take 21.01 seconds to run, regardless of the query. This is timed from within PHP (before and after DB query).
The SELECT statements range from complex joins with optimization to statements with single tables and explicit indices.
If, during a PHP request, we perform three SELECT statements before closing the DB connection, the total time would be 63.03 seconds (21.01 * 3). The same applies for 2 statements (42.02 seconds).
Using SQL Server tools, we've tracked the actual execution times of these scripts to be between 0.01 to 0.45 seconds, but these differences don't seem to reflect in the overall delay (it is always fixed at 21.01, not 21.46, etc).
We did seem to find some correlation of WinHTTP Proxy triggering at the start of these delayed periods but we have since disabled WinHTTP Proxy with no resolution.
Any advice?