Red Gate forums :: View topic - Apparent deadlock when running in Sampling mode
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Performance Profiler 8
ANTS Performance Profiler 8 forum

Apparent deadlock when running in Sampling mode

Search in ANTS Performance Profiler 8 forum
Post new topic   Reply to topic
Jump to:  
Author Message
swythan



Joined: 19 Nov 2008
Posts: 9

PostPosted: Mon May 13, 2013 12:16 pm    Post subject: Apparent deadlock when running in Sampling mode Reply with quote

I'm trying to profile my app on and I can't get it to work in Sampling mode. Every time I try, my application appears to deadlock once it hits the code that I'm actually trying to profile. That is: CPU usage goes 0% and the program stops making progress.

The code I'm trying to use is using a lot of Parallel.For loops and Tasks, and I'm running on a system with 2x Intel Xeon E5-2665 CPUs, for a total of 32 logical cores (16 physical w/ hyper-threading). WinDbg shows that I have 61 .Net threads at the point of deadlock, with quite a few of them at :
Code:
RedGate_Profiler_Core!ANTS_Leaving_Sql+0x419ef


Any ideas? I'm happy to poke around some more with WinDbg, if that helps.

Thanks!

P.S. Line & Method-level timings work OK, but the CPU usage pattern I get is quite different from when I'm running without the profiler, so that's no good to me. I really need to get sampling-based profiling working. VS2012's sampling mode works, but that doesn't easily give me the "what method is running when" info that ANTS does.
Back to top
View user's profile Send private message
james.billings



Joined: 16 Jun 2010
Posts: 1144
Location: My desk.

PostPosted: Tue May 14, 2013 1:16 pm    Post subject: Reply with quote

Thanks for your post- is it possible for you to supply the memory dump to us for analysis?

If it zips up pretty small, please email it to support@red-gate.com along with "F0072862" in the subject line. If it's still pretty large then I can set up some FTP space if you have nowhere else for it to go... feel free to email us with the above ref. in any case.
Back to top
View user's profile Send private message
seanhalliday



Joined: 09 Oct 2013
Posts: 2
Location: EA Canada

PostPosted: Wed Oct 09, 2013 3:58 pm    Post subject: I am seeing the same thing in 8.3.0.8 Reply with quote

Application regularly hangs when in sampling mode and ANTS profiling just flatlines with "Blocked" as the only info when I select regions of the timeline.
Back to top
View user's profile Send private message
cesar.fernandes



Joined: 09 Aug 2011
Posts: 3
Location: Brasil

PostPosted: Mon Oct 14, 2013 1:28 pm    Post subject: Experiencing the same issue Reply with quote

I am having the same issue reported at this thread. I am seeing exactly the same behaviour as seanhalliday.

Is there any solution for it? I haven't tried the other profiling methods, do they work?

Thanks in advance
Back to top
View user's profile Send private message
seanhalliday



Joined: 09 Oct 2013
Posts: 2
Location: EA Canada

PostPosted: Tue Oct 15, 2013 5:22 pm    Post subject: I am seeing the same thing in 8.3.0.8 Reply with quote

@cesar.fernandes - I have not seen this issue with other profiling methods.
Back to top
View user's profile Send private message
jessica.ramos



Joined: 23 Apr 2012
Posts: 235

PostPosted: Wed Oct 16, 2013 5:10 pm    Post subject: Reply with quote

Hi seanhalliday and cesar.fernandes,

So sorry to hear you've run into this issue!

Could you each drop us a line at support@red-gate.com so we can open up tickets for you both and investigate this deadlock problem?

Ideally, we'd like to get a copies of your applications and/or hang dump files to really understand what's going wrong.

Thanks!
_________________
Jessica Ramos
Technical Support
Red Gate Software Ltd.
Back to top
View user's profile Send private message
Chris.Allen



Joined: 12 Mar 2009
Posts: 593

PostPosted: Thu Oct 17, 2013 5:46 pm    Post subject: Reply with quote

Curiously- this is an access denied exception from:

System.Diagnostics.ProcessManager.OpenProcess(System.Int32,System.Int32,System.Boolean)
System.Diagnostics.Process.GetProcessHandle(System.Diagnostics.Process,System.Int32,System.Boolean)
System.Diagnostics.Process.get_HasExited(System.Diagnostics.Process)
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