views:

41

answers:

2

can anybody recommend tools to detect .net application deadlock?

EDIT: Chess is what i found from Microsoft.

+2  A: 

The nicest tool I've seen is the Concurrency Visualizer in VS 2010. I would recommend installing VS 2010 Ultimate Beta 2, then profiling your application with the Concurrency Profiler.

This shows you exactly where you have contention, and what is holding each lock.

Reed Copsey
cool, i will give it a shoot. is there any lightweight tool?
Benny
That's what I've been using. Many profilers have some capabilities, but the VS one is by far more usable... (although it's very slow, atm)
Reed Copsey
+2  A: 

Additionally to VS, you can also go more lowlevel by using WinDBG and the sosex Extension; more specifically the "!dlk" command.

Granted, the learning curve with WinDBG could be a bit steep, but it could be certainly worth it - for all sorts of issues.

Christian.K
thanks, i will try it.
Benny