Community Tools Month: Using sp_WhoIsActive to Catch ASYNC_NETWORK_IO


When your SQL Server’s top wait stat is ASYNC_NETWORK_IO, that indicates SQL Server is waiting on the app to ask for the next part of the result set.

This is a real pain in the rear to troubleshoot because often these waits happen for really short duration each time – think milliseconds, not seconds. It’s an issue of death by a thousand cuts.

The easiest way to get a quick idea what’s happening is to use sp_WhoIsActive (Github – releases) repeatedly with no pauses in between:

EXEC sp_whoisactive; GO 5

Here, I’m running a workload with a lot of short queries running