Category: Wait Types
-
WAIT_XTP_OFFLINE_CKPT_LOG_IO Wait Type in SQL Server
WAIT_XTP_OFFLINE_CKPT_LOG_IO is recorded when an In-Memory OLTP offline checkpoint thread waits for a log read I/O to complete. The XTP checkpoint mechanism continuously scans the transaction log for changes to memory-optimized tables and folds them into checkpoint file pairs; when the scanner has to physically read log from disk, the read time lands here. Its…
Written by
-
WAIT_XTP_RECOVERY Wait Type in SQL Server
WAIT_XTP_RECOVERY is recorded when database recovery waits for the recovery of memory-optimized objects to finish. It appears during crash recovery, after failovers and restores, and around certain database state changes (offline to online, read-only to read-write). Memory-optimized tables must be fully reloaded into memory from checkpoint files and log before the database is usable. The…
Written by
-
WAIT_XTP_TASK_SHUTDOWN Wait Type in SQL Server
WAIT_XTP_TASK_SHUTDOWN is recorded while a thread waits for an In-Memory OLTP thread to complete and shut down. XTP runs its own background threads (checkpoint workers, garbage collection helpers), and orderly teardown, at database offline, instance shutdown, or internal reorganisation, means waiting for them to finish. Lifecycle machinery, active at endings. Is It a Problem? No;…
Written by
-
WAITFOR_PER_QUEUE Wait Type in SQL Server
WAITFOR_PER_QUEUE is recorded when a Service Broker worker thread waits for a message on a specific queue as part of an activation procedure’s WAITFOR (RECEIVE …). Each wait runs up to the statement’s timeout, or 60 seconds when none is specified, then the loop typically re-issues the receive. It is the queue-scoped cousin of BROKER_RECEIVE_WAITFOR,…
Written by
-
WRITE_COMPLETION Wait Type in SQL Server
WRITE_COMPLETION appears when a thread waits for a synchronous file write to finish. Ordinary dirty-page flushing goes through checkpoint and the lazy writer (showing up as other waits), so WRITE_COMPLETION covers the special cases: writes to database snapshot files, certain metadata writes, and other file operations the engine performs synchronously. The database snapshot angle is…
Written by
-
WRITELOG Wait Type in SQL Server
Part of the SQL Server Wait Types Library Every committed transaction in SQL Server must wait for its log records to be written to disk before the commit is acknowledged. WRITELOG is the wait for that write to complete. It is present on every transactional system, the question is whether it is high enough to…
Written by
-
XE_BUFFERMGR_ALLPROCESSED_EVENT Wait Type in SQL Server
XE_BUFFERMGR_ALLPROCESSED_EVENT is recorded on a background thread while Extended Events session buffers are flushed to their targets, waiting for the “all buffers processed” signal. Flush-everything moments happen at session stops, target-state queries, and checkpoint-like operations inside the XE engine. Part of the XE delivery machinery, alongside the dispatcher and timer waits. Is It a Problem?…
Written by
-
XE_DISPATCHER_WAIT Wait Type in SQL Server
XE_DISPATCHER_WAIT is recorded by the background dispatcher threads that serve Extended Events asynchronous targets, while they wait for filled event buffers to process. Events accumulate in session buffers; when a buffer is ready (full, or past its dispatch latency), a dispatcher picks it up and delivers it to the target. Between deliveries, the dispatchers sit…
Written by
-
XE_FILE_TARGET_TVF Wait Type in SQL Server
XE_FILE_TARGET_TVF is recorded while a thread performs operations for a query reading event data from an Extended Events file target via sys.fn_xe_file_target_read_file, the function behind most XE analysis queries, including reading system_health files. It is a preemptive wait, so the thread stays on the processor until the read operation completes. Every time you (or a…
Written by
-
XE_LIVE_TARGET_TVF Wait Type in SQL Server
XE_LIVE_TARGET_TVF is recorded while a thread services a query that pulls data from an Extended Events live data stream, most commonly the “Watch Live Data” viewer in SSMS. The live target streams events to the watching client as they occur, and the serving thread accumulates this wait while that stream is open. It is a…
Written by
Blog Categories
- Backups & Recovery (6)
- High Availability (HA) (6)
- Installation & Configuration (12)
- Labs (1)
- Maintenance (3)
- Monitoring (20)
- Performance Tuning (8)
- Security (Encryption & Permissions) (5)
- T-SQL Fundamentals (8)
- Troubleshooting (6)
- Wait Types (201)
Latest Posts
- When Shrinking Temp DB Just Won’t Shrink
- SQL Server Replication Monitoring Scripts
- SQL Server Wait Types Library
- PARALLEL_REDO_WORKER_SYNC Wait Type in SQL Server
- PARALLEL_REDO_WORKER_WAIT_WORK Wait Type in SQL Server
- PERFORMANCE_COUNTERS_RWLOCK Wait Type in SQL Server
Blog Tags
Always On Availability Groups (4) Certificates & Encryption (1) Database Backups & Recovery (10) Database Maintenance (6) DBA Tools (29) Performance Troubleshooting (9) PowerShell (4) Query Behaviour (4) Schema Changes (1) SQL Agent (1) SQL Interview Questions (1) SQL Scripts (23) SQL Server Administration (11) SQL Server Configuration (7) SQL Server Errors (5) SQL Server High Availability (4) SQL Server Internals (4) SQL Server Management Studio (SSMS) (7) SQL Server Monitoring (10) SQL Server Networking (9) SQL Server Replication (2) SQL Server Security (8) SQL Server Versions (2) Storage and Capacity (14) T-SQL (9) Transaction Logs (8) Troubleshooting (14) Windows Server (4)