WAITFOR_PER_QUEUE Wait Type in SQL Server

⏳Part of the SQL Server Wait Types Library, every wait type explained.Related deep dive: SOS_SCHEDULER_YIELD Wait TypeRelated pillar: Performance & Troubleshooting

Is It a Problem?

No. It is a normal wait in any environment using Service Broker activation procedures, and it was zero on our SQL Server 2025 lab. Get Wait Statistics does not filter it out, so if it ranks, you will see it.


What It Means

Microsoft lists it as internal use only, from SQL Server 2012. It is a Service Broker worker waiting for a message on a specific queue as part of an activation procedure, with each wait lasting up to the WAITFOR (RECEIVE ...) timeout, or 60 seconds if none is given. It is the queue-specific cousin of BROKER_RECEIVE_WAITFOR.


When It Does Matter

It does not. When activation lags, check whether activated procedures are failing, in the error log, and whether MAX_QUEUE_READERS suits the arrival rate.

Service Broker health lives elsewhere. Messages that cannot be delivered sit in sys.transmission_queue with a transmission_status explaining why, activation procedure errors go to the error log, and conversations that are never ended pile up in sys.conversation_endpoints. The baseline to monitor is the row count in those two views staying flat. Get Service Broker Health and Database Mail Queue checks both.


The WAITFOR Waits

These waits are code that chose to wait: a WAITFOR statement, or a Service Broker activation procedure waiting for its next message. Neither is contention. If one is near the top of your waits, start from the waits that usually matter instead.

  • WAITFORWAITFOR statement. A session running WAITFOR DELAY or WAITFOR TIME.Usually noise
  • WAITFOR_PER_QUEUEActivation wait. A Service Broker activation procedure waiting for a message on its queue.Usually noise. This page.

Where To Go Next

WAITFOR_PER_QUEUE is background noise wherever Service Broker activation runs. If you are chasing a real problem, start with the waits that cost you time.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *