Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

excessive locks

Status
Not open for further replies.
Joined
Jun 27, 2001
Messages
837
Location
US
have a 3rd party sql 2000 app, mostly bad sql. have lock issues, when monitoring sql locks/req per second, I get normally between 500,000 and 1,000,000 requests. For a 4 way box with 16 gig of memory, what is considered an excessive amounts of locks.
 
An unacceptable level is of locks is when you experience slowdowns in query response times due to locking. In my experience, it can just take a few long-running blocking locks to bring a system to a halt. Depends on the resource being locked.
 
Yes it does get slow from user's perspective. I was considering running sp-lock and look more closely at objects being locked
 
Yes, you can use sp_lock.

I tend to find graphical tools easier to work with. In EM (2000), you can look at locks under "Current Activity" and see exactly which SPIDs are locking/blocking and the corresponding queries. However, it is real-time only.

For a historical perspective, I use Quest's Performance Analysis, which is a great overall tool for monitoring a database.

Then of course, once you figure out which queries are the culprits, you need to look into how to tune those queries/applications that are creating the locks.

Good luck.
 
Yes, EM can hang badly. But can you see the underlying sql using a built-in sp or other query? I'd be interested to know. Thanks
 
sp_who2 shows a lot of things, but it does not show sql statement text
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top