Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12554

2008R2 Lock average wait time greater than 5s

$
0
0

Hi, I have a performance issue with SQL Server 2008 R2 on Dell R710 Windows 2008 R2.  Server has 80GB memory, 64GB allocated to SQL Server standard edition and an external DAS box with two RAID10 arrays, each 12 disks, one for tempdb and another for customer databases.  SQL database log files go to an internal RAID5 array with 6 disks and OS and swap is on a RAID1 array.  CPUs are dual 6 core X5690s at 3.4GHz.

I'm seeing SQLServer:Locks _Total\Average Wait Time well over 5000 ms for some periods of the day and peaking at 30,000 ms or 30 seconds which is causing SQL timeouts in some applications.

I've checked disk queue length, lower than 20 and lower than 5 for 98% of the day. CPU peaks at 55% at one point during the day and stays below 40% for 98% of the time.  Buffer manager lazy writes is less than 5 most of the day and IOPS peaks at 6500 and sits at about 2000 for most of the day, well within the capacity of the DAS box (A Dell 1220 from memory, 24 x 2.5" 146GB 15K SAS 6k drives)  The server isn't paging and all looks OK, apart form the long lock times and the SQL timeout errors this is causing.

I'm thinking that the lock times are probably caused by inefficient application SQL.  I can see some long queries with high times in SQL Manager but I'm wondering how I can get exact detail of queries which are causing the specific high lock times.  Is there are a way to correlate queries with the lock wait times ?

Many thanks :) 


Viewing all articles
Browse latest Browse all 12554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>