• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
  • Home /
  • Public Forums /
  • Application Monitoring & UEM /
  • AppMon & UEM Open Q&A /
avatar image
Question by Scott C. · Feb 20, 2014 at 06:18 PM · production

Long hand off between Web Server to CLR?

We are seeing some strange behavior on some of web page responses.  A lot of our purepaths are indicating a long time between Web Server and the CLR.

Is there any way to tell what is happening in-between the arrows below?  In the example it is a total of 6 seconds.  I'm assuming its the handoff between IIS and the CLR... just a guess.

Comment

People who like this

0 Show 0
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

6 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by Andreas G. · Feb 21, 2014 at 09:26 AM

Hi Scott

I just worked on this with a customer that also runs ASP.NET There are different thread pools involved when IIS handles requests and forwards them to ASP.NET. When these requests are pooled between IIS and ASP.NET they show up as time spent on IIS just like in your screenshot. Here is a link to a blog post that I found on this: http://blog.leansentry.com/2013/07/all-about-iis-asp-net-request-queues/

What I suggest is to monitor these windows performance counters to see whether requests are being queued giving an indication of either overloaded IIS or incorrectly configured IIS/ASP.NET Worker Processes:

-          Requests current

-          Requests Queued

-          Requests Executing (APS.NET)

-          Requests Executing (APS.NET Apps v4.0.30319)

 

Another explanation is that you have native modules in IIS, e.g: authentication handling, URL Rewrite, ... -> these modules are executed as part of the request in IIS. As they are native we dont see "into" them and therefore show the time as I/O spent on IS.

I hope this helps

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Adam R. · Feb 21, 2014 at 04:51 PM

We've seen similar issues where requests were longer-running than expected and the time was spent pre-CLR, so the extent of the information provided by dynaTrace was "not code in the CLR".

In these cases, we enabled Failed Request Tracing (FRT) to identify where in the IIS pipeline the time was being spent. (The FRT name is a misnomer; it can trace any request, e.g., long-running requests.)

http://www.iis.net/learn/troubleshoot/using-failed-request-tracing/troubleshooting-failed-requests-using-tracing-in-iis

From what I recall, the guilty party responsible for our mystery latency was an IIS auth module.

If you haven't tried it yet, it might help.

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Scott C. · May 15, 2014 at 01:29 PM

Thanks for the response Andreas and Adam.  We're still battling this problem and can't seem to gather much info.  Even during low traffic periods, we see the same issue.  For example, this one PP I'm looking at shows 15.4sec in IIS, and 2.69msec in CLR.  None of the perfmon metrics are showing any kind of blocking or stacking up in queues.

I added some extra tracking to modules (see picture below) and it doesn't seem to show any indication that its slowness in the IIS module section.  The PP even indicates that the module execution is done inside the CLR.

Does anyone with IIS and .NET have this issue?  Our developers are asking a lot of questions as to what this means.. and I'm not sure how to answer it.

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Adam R. · May 15, 2014 at 01:35 PM

Scott, if you attach an FRT log corresponding to one of the long-running requests and the associated PP, I'd be happy to take a look. No promises!

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Melanie Z. · Sep 17, 2014 at 03:58 AM

Does anyone have additional insight as to why so much time is spent on the Web Server tier? I am seeing the same issue and there are no queues backed up on IIS or ASP.NET.

I also enabled FRT on one of my IIS servers and there is no significant amount of time spent in IIS either.

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Jian C. · Dec 25, 2014 at 07:03 PM

Hi Melanie

any luck with issue? i got a similar one and trying to find out the root cause for the time spent between web server agent and .net server and these agents are on the same server.  any suggestion is appreciated,thanks  

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

How to get started

First steps in the forum
Read Community User Guide
Best practices of using forum

NAM 2019 SP5 is available


Check the RHEL support added in the latest NAM service pack.

Learn more

LIVE WEBINAR

"Performance Clinic - Monitoring as a Self Service with Dynatrace"


JANUARY 15, 3:00 PM GMT / 10:00 AM ET

Register here

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Problem with Monitor (Windows Performance Monitor)

WARNING [VisitStoreStatistics] in Server.0.0.log

Unix System Monitoring Issue

Only monitor certain MQ Instances?

Memory settings

Forum Tags

dotnet mobile monitoring load iis 6.5 kubernetes mainframe rest api dashboard framework 7.0 appmon 7 health monitoring adk log monitoring services auto-detection uem webserver test automation license web performance monitoring ios nam probe collector migration mq web services knowledge sharing reports window java hybris javascript appmon sensors good to know extensions search 6.3+ server documentation easytravel web dashboard kibana system profile purelytics docker splunk 6.1 process groups account 7.2 rest dynatrace saas spa guardian appmon administration production user actions postgresql upgrade oneagent measures security Dynatrace Managed transactionflow technologies diagnostics user session monitoring unique users continuous delivery sharing configuration alerting NGINX splitting business transaction client 6.3 installation database scheduler apache mobileapp RUM php dashlet azure purepath agent 7.1 appmonsaas messagebroker nodejs 6.2 android sensor performance warehouse
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A