8 Replies Last post: Feb 15, 2013 2:58 PM by Dmitry Novoselov  
Dimi Toulakis Newbie 4 posts since
Feb 7, 2013
Currently Being Moderated

Feb 12, 2013 3:13 PM

Attach to process - [Unsafe stack walking]

Hi,

 

I am attaching to a w3wp.exe process with the profiler.

Not a problem at all.

 

At the time I am getting the snapshot and open the call tree, I see a big part being marked with [Unsafe stack walking].

 

test.png

 

Can someone explain to me what this is exactly?

 

Thanks a lot...

 

 

Cheers, Dimi

Asia Rudenko JetBrains 87 posts since
Nov 11, 2010
Currently Being Moderated
Feb 12, 2013 5:08 PM in response to: Dimi Toulakis
Re: Attach to process - [Unsafe stack walking]

Hello Dimi,

What version of dotTrace are you using?

Asia Rudenko JetBrains 87 posts since
Nov 11, 2010
Currently Being Moderated
Feb 13, 2013 4:12 PM in response to: Dimi Toulakis
Re: Attach to process - [Unsafe stack walking]

Dimi, please send me dotTrace's core logs from profiling your application in x86 and x64 mode.

How to get core logs:

1. close standalone dotTrace and Visual Studio with integrated dotTrace.
2. go to your Temp folder (you can find its location by executing 'cd %Temp%' in command line).
3. find 'JetLogs' folder and delete it.
4. launch dotTrace, prepare for profiling; in 'Profiler Configuration' dialog, press Ctrl + Shift + Alt + F11.
5. click 'Expert options' button.
6. enable 'Enable logs' checkbox (only this checkbox).
7. click OK and run profiling.
8. perform actions that lead to issue.
9. close dotTrace.
10. send content of %Temp%/JetLogs to me (alexandra.rudenko@jetbrains.com).
Thanks in advance.

Asia Rudenko JetBrains 87 posts since
Nov 11, 2010
Currently Being Moderated
Feb 13, 2013 4:20 PM in response to: Asia Rudenko
Re: Attach to process - [Unsafe stack walking]

Sorry, a little update: in step 6 enable "PerformanceSamplingGt" check box, too.

Dmitry Novoselov Newbie 2 posts since
Feb 13, 2013
Currently Being Moderated
Feb 13, 2013 2:07 PM in response to: Asia Rudenko
Re: Attach to process - [Unsafe stack walking]

Hello Asia,

 

We have the exact same scenario: we are profiling w3wp.exe with the dotTrace version 5.3 build 1114. And we have about 50% of time shown as "unsafe stack walking".

 

We started with profiling the application using RemoteAgent, then installed dotTrace locally on the server and profiled locally - with the same result. At the same time, we don't have this "unsafe stack walking" when we profile in a development environment - when the application is run using Visual Studio development web server. So dotTrace seems to have difficulty collecting sampling info for an application being run using IIS.

 

But the main question for us now: is the time shown as "unsafe stack walking" actually spent in our code, and it's just we can't have details on where the time is spent? Or can it be that the time is spent on some infrastructure overhead introduced by IIS, or something?

 

UPD: just built a piece of code we want to profile into an .exe and profiled it on the server. Now we have up to 70% of the execution time spent on "unsafe stack walking". So it's not IIS with its runtime causing the issue.

 

Development workstations vary: have different operating systems installed (including server types of OS), different number of cores and amount of memory. So it doesn't seem to depend on OS. The framework versions are also the same. But all of the developer machines are phisical ones, and the servers are virtual.

 

UPD2: We seem to have sorted it out: the console application we built for testing purpose profiles OK when it is built for the x86 platform and have ~50% of "unsafe stack walking" when it's built for x64. The execution time is about the same so at least we know that the application is not being stuck for some weird reason when is run under IIS.

 

What would be your plans on fixing it?

 

Thanks,

Dmitry

Asia Rudenko JetBrains 87 posts since
Nov 11, 2010
Currently Being Moderated
Feb 13, 2013 4:15 PM in response to: Dmitry Novoselov
Re: Attach to process - [Unsafe stack walking]

Hello Dmitry,

Thank you for detailed post; could you please send me dotTrace's core logs, too, from x64 and x86 versions of your app? Here's the instruction:

1. close standalone dotTrace and Visual Studio with integrated dotTrace.
2. go to your Temp folder (you can find its location by executing 'cd %Temp%' in command line).
3. find 'JetLogs' folder and delete it.
4. launch dotTrace, prepare for profiling; in 'Profiler Configuration' dialog, press Ctrl + Shift + Alt + F11.
5. click 'Expert options' button.
6. enable 'Enable logs' checkbox (only this checkbox).
7. click OK and run profiling.
8. perform actions that lead to issue.
9. close dotTrace.
10. send content of %Temp%/JetLogs to me (alexandra.rudenko@jetbrains.com).
Thanks in advance.

Asia Rudenko JetBrains 87 posts since
Nov 11, 2010
Currently Being Moderated
Feb 13, 2013 4:21 PM in response to: Asia Rudenko
Re: Attach to process - [Unsafe stack walking]

Sorry, a little update: in step 6 enable "PerformanceSamplingGt" check box, too.

Dmitry Novoselov Newbie 2 posts since
Feb 13, 2013
Currently Being Moderated
Feb 15, 2013 2:58 PM in response to: Asia Rudenko
Re: Attach to process - [Unsafe stack walking]

Just sent you an email with logs.

More Like This

  • Retrieving data ...