Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3548

Re: master..syslocks vs master..monLocks

$
0
0

I too wondered about the font size :-)   

 

Thanks for the clarification.

 

Typically my attack for high number of locks on a production server begins with monProcessActivity table which has LocksHeld column per SPID.  If I sort it by LocksHeld desc I get to a couple of top suspect SPIDs.

 

Then onto monProcessObject for the suspect SPIDs and table names.

 

Normally temp tables/work tables do get exclusive table locks for each SPID.

 

Typical culprit is an "insert into a temp table" based on "select from". 

Lock escalation for the source of this kind of  "select " may not happen if it is a relatively active table.

Thus the number of locks will climb so fast before you blink.

 

I have a watchdog process polling every minute to knock out any SPID grabbing more than 1M locks.

Keeps the server from getting into danger zone.  That process gets a few hits every month. And with that evidence provided to developers they can fix the code !

 

HTH

 

Avinash


Viewing all articles
Browse latest Browse all 3548

Trending Articles



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