LCK_M_X_LOW_PRIORITY

Description

This wait occurs when a request is waiting to acquire an Exclusive lock with the low priority options added in SQL Server 2014. This wait typically occurs when read and modify requests are blocked by another write transaction (implicit of explicit) that has been kept open for an extended period of time. Some values are expected but if values are excessive please see suggested solutions below. The low priority operations must not be set to abort blockers for this wait type to accumulate

Resolved by

DBAs and Developers

Suggested solutions

  1. Keep transaction durations short
  2. Ensure transactions isolation levels are appropriate (avoid SERIALIZEABLE and REPEATABLE READ if possible).
  3. Investigate enabling the READ_COMMITTED_SNAPSHOT database setting
  4. Run trace/Profiler/Extended Event session in conjunction with Blocked Process Threshold to determine which queries are being blocked
  5. Indexing, ensure long running queries and transactions are optimised
  6. Ensure locks being escalated correctly: row, page or table (if table is partitioned considered enabling partition escalation)

Additional research

Exploring Low Priority Lock Wait Options
Reducing SQL Server Locks
Understanding Isolation Levels
Identify the Cause of SQL Server Blocking
Lock Escalations

⇐ Back to index