Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

On a production SQL Server 2012 database we are getting some odd locking statistics that I don't understand.

  • Lock Waits/Min: 0.2
  • Lock Timeouts/Min: 197.4
  • Deadlocks/Min: 0.0

@@lock_timeout is set to -1

How can I have Lock Timeouts without having Lock Waits? I recently added some missing indexes, could that be affecting these numbers?

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

It seems you are monitoring a Lock Timeouts/sec Performance Monitor counter or perhaps querying sys.dm_os_performance_counters directly. The Lock Timeouts/sec class for Profiler has the following notes in the documentation:

Lock Timeouts/sec

Most likely the vast majority of the events you are seeing are explained that way. Try monitoring Lock:Timeout (timeout > 0) instead.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.