• 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 Rob M. · Oct 29, 2011 at 06:14 PM · production

Slow startup (JIT) times for ASP.NET applications

I have several asp.net applications that I want to monitor with DynaTrace. Without DynaTrace these applications startup in 10s of seconds. By startup I'm referring to the time it takes for the just-in-time compiler to compile about 30 dlls and 100 aspx, asmx, etc. pages. With an agent deployed, with what I would call an optimized approach the time grows to several minutes. We have recorded times in excess of 4 minutes.

How can I determine which sensor(s) are causing the most delay? The only course of action I can think of is start placing them one at a time, which, could take a while.

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 Tarjei U. · Oct 13, 2014 at 11:06 PM

Do you have an example?

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 Andreas G. · Oct 13, 2014 at 10:41 PM

There is some information in the agent log files. It tells you how many classes were sent to the collector to be instrumented and how long that took

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 Andreas G. · Oct 13, 2014 at 10:27 PM

Hi

During startup our .NET Agent needs to send the .NET Assemblies that get loaded by the CLR to the dynaTrace Collector which is doing the actual byte code instrumentation. The "overhead" or slowdown in that startup phase is therefore depending on two factors

a) how many assemblies get loaded into your application

b) the network connection between your agent and the collector

A best practices for deploying dynaTrace is to put Agent and Collector as close as possible to avoid this type of slowdown. But - you will definitely experience some slowdown. This is however ONLY during startup but not during regular operation

Andi

Comment

People who like this

0 Show 1 · 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 Tarjei U. · Oct 13, 2014 at 10:38 PM 0
Share

Is there any way possible to check how much overhead this generates?

We have a customer with an archictecture that makes the application do JIT A LOT. 

So getting infromation about this would be appreciated.

avatar image

Answer by Tarjei U. · Oct 13, 2014 at 10:13 PM

Hi, I was wondering a little bit about this as well.

How much overhead does dynatrace generally introduce in JITing of methods / classes and so forth?

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 Christian S. · Oct 31, 2011 at 02:54 PM

hi Robert

based on what you describe, i would guess it's related to either

  • network latency: as described by Andi above
  • NGEN: do you use NGEN heavily for your application?
    • for correct .NET application diagnosis, we have to disable NGEN which may lead to (usually slightly) longer startup times
  • excessive instrumentation: please have a look at Agents Overview -> Deployed Sensors (on the bottom) to get an idea of the number of instrumented method

if disabling (unplacing, _not_ setting inactive) all sensors helps decreasing your startup time, it will most probably be related to #1 or #3.

best, Christian

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 Andreas G. · Oct 31, 2011 at 01:03 AM

Hi Robert

4 minutes sounds a bit too long. Where is your Collector deployed? The collector is doing the actual instrumentation and should therefore be close to the agent in order to avoid slow startup because of network latency.
If you have the Collector close to your agents I suggest sending in your logfiles through a Support Ticket.

Andi

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Measurement consumption increase after Synthetic Test Integration for Dynatrace Application Monitoring: change 5 minutes interval?

Performance overhead of enabling bind value capturing and increase the SQL capture length

Copying measures across system profiles

Purepaths not correctly pulling from chart

Where I can review outbound requests from server

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