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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Listing CFLOCKs

Status
Not open for further replies.

csteinhilber

Programmer
Aug 2, 2002
1,291
US
Does anyone know how I can determine the name of the template that currently owns a lock for a particular scope?

We have a reoccuring deadlock on the Application scope... obviously a template somewhere has bad locking code... but how can you figure out where/which template?



-Carl
 
If the CF Admin Log Files don't give any hints, then the only other thing I can think of - and you won't like the answer - is do an Extended Find over your entire application for scope="APPLICATION" or maybe just scope=". This will "at least" find the "potentials".

I'll keep thinkin about this one though, as I'm guessing my above statement doesn't really help much.
 
I've already done the searches... and didn't come up with much except a couple of instances where the lock was simply:
Code:
<CFLOCK timeout=&quot;2&quot;>
no name, scope or type

But from what I've read, the tag would still fall back to defaults (EXCLUSIVE lock on the APPLICATION scope)... and even though this wouldn't be optimal (many could make do with read-onlys), it still shouldn't cause a deadlock.

So I'm stumped.

Unless one of the templates locked a scope and then bombed somehow... anyone know if the lock gets cleaned up, or does it still exist?



-Carl
 
Oy... that's ugly.

Still, it'd be worth looking into... unfortunately, this is on our 5.0 server. :-(


-Carl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top