.NET deadlock detection

Questions about YourKit .NET Profiler
Post Reply
DrKnow
Posts: 2
Joined: Fri Jan 27, 2012 2:46 pm

.NET deadlock detection

Post by DrKnow »

I am wondering does YK profiler have any built-in features for detecting deadlocks in .NET applications ?

How do I identify a deadlock using the profiler ?

Many Thanks,
Mark
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: .NET deadlock detection

Post by Anton Katilin »

Hello Mark

There is no automatic deadlock detector in the .NET profiler.
You can manually explore running threads, their stacks and running status using Threads view:
http://www.yourkit.com/docs/net60/help/threads.jsp

Best regards,
Anton
DrKnow
Posts: 2
Joined: Fri Jan 27, 2012 2:46 pm

Re: .NET deadlock detection

Post by DrKnow »

Thanks for your reply, I have come across that link before but I am not sure what would a thread running status of a deadlock indicate ?
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: .NET deadlock detection

Post by Anton Katilin »

Deadlocks are not detected automatically.
2 deadlocked threads will be in waiting state. You can suspect a deadlock if the threads are waiting for unexpectedly long time. But it is not necessarily a deadlock, you decide whether it is basing on your knowledge of what the threads should do.
Post Reply