Red Gate forums :: View topic - Thread Blocked .Net Desktop application
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Profiler Previous Versions
ANTS Profiler Previous Versions forum

Thread Blocked .Net Desktop application

Search in ANTS Profiler Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
jefflundstrom



Joined: 22 Apr 2009
Posts: 2

PostPosted: Wed Apr 22, 2009 6:38 pm    Post subject: Thread Blocked .Net Desktop application Reply with quote

Hello,

I bought ants to help improve the performance of our .Net Desktop Application and am getting a high Thread Blocked % with no description of where it is happening. In frusteration, I created a basic .Net C# app with no controls at all and when I run the profiler it tells me 50% of the time this app too is thread blocked, what the heck? What is this telling me, should I ignore this value or what?




Thanks,

Jeff

Back to top
View user's profile Send private message
AndrewH



Joined: 17 Aug 2006
Posts: 137

PostPosted: Thu Apr 23, 2009 10:59 am    Post subject: Reply with quote

'Thread blocked' is the time a thread spends inactive, waiting to be woken up (eg, because it is waiting for IO to complete, some user interaction or for a lock to be acquired). It's not time spent running on the CPU and is often not very interesting in terms of performance, so you can select 'CPU time' to eliminate this time from the results. You can also use the thread drop down to focus on individual threads.

In this case, I think you're seeing one of the garbage collection threads waiting to be activated. A top-level 'thread blocked' like this indicates a sleeping .NET thread that isn't running any .NET code at all.
_________________
Andrew Hunter
Software Developer
Red Gate Software Ltd.
Back to top
View user's profile Send private message
jefflundstrom



Joined: 22 Apr 2009
Posts: 2

PostPosted: Thu Apr 23, 2009 12:56 pm    Post subject: Re: Reply with quote

Thanks Andrew, that is what I figured, just wanted to make sure I was not setting up the profiler wrong or something.

Thanks again for getting back to me so quick!

Jeff
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group