• 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 Flora H. · Aug 14, 2014 at 07:30 AM ·

Possible to cache/deliver dtagent-xxx.js via CDN?

One of my customer notice a significant delay while UEM enabled, after some investigation I believe this is truly network related. The customer only see the latency for their customers from Asia, Singapore in particular. Here is the customer’s deployment and our observation.


Customer’s deployment:

Application server: hosted in one centralized DC in the States, with dynaTrace instrumentation and UEM enabled.

Content server: hosted by CDN.

 

Symptom:

  1. For contents delivered via CDN, components load time are similar for users from New York and Singapore.
  2. For contents delivered by the application server, from Singapore components load times is 10 times higher than from New York.
  3. Given a content of 2.5k delivered by application server directly, the component load time is almost the same as dtagent-xxx.js (15.6k) when hitting from Singapore, only 80ms shorter than dtagent-xxx.js. So I think migration to 6 will not help a lot.

 

Given the observation above, the customer want to know if it’s possible to get dtagent-xxx.js cached or delivered via CDN, Anyone has any practice to share on this topic please? Thanks!

 

Best Regards,

Flora

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.

12 Replies

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

Answer by Jerry L. · Sep 05, 2014 at 08:35 AM

Ahh, The agent location.

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.

avatar image

Answer by Flora H. · Sep 05, 2014 at 08:04 AM

First make sure you put the right .js file per the technology you specify over CDN. Then here is my configuration on dynaTrace end. Let's assume the direct access for the dtagentxxx.js over cdn is: http://myapp.abc.com/dtagentxxx.js 

cdn.JPG

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 Jerry L. · Sep 05, 2014 at 07:52 AM

What did you end up doing?

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 Flora H. · Sep 05, 2014 at 07:49 AM

 

Just got it work after some configuration change on dynaTrace side!

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 Flora H. · Sep 05, 2014 at 01:19 AM

Andreas/Rob,

I managed to get the browser end retrieve dtagentxxx.js successfully, but I never seen the browser send back data via /dynaTraceMonitor since then, there are no POST /dynaTraceMonitor at all from the developer view within Chrome, anything broken out there?

Best Regards,

Flora

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 Flora H. · Sep 04, 2014 at 04:15 AM

Yes Rob, that's the right expression, you have any clue?

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 Rob V. · Sep 04, 2014 at 04:00 AM

Hi Flora,

I think Andi may be answering a different question. I think that you are saying the following - correct me if I'm wrong. You put the dtagent.js on the CDN, and can see it there. But when the users are getting pages sent to their browsers with the reference to the dtagent.js embedded in the page, you're seeing our agent being downloaded from the "home" server, not the CDN. Is that it?

Rob

 

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 Flora H. · Sep 04, 2014 at 03:45 AM

 

If the CDN has to forward this request back to the web server, how it would reduce the latency per say?

Originally we are thinking about putting dtagent-xx.js over CDN mainly because of the network latency we are seeing in the waterfall chart while downloading the .js file from the web server.

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. · Sep 04, 2014 at 02:46 AM

You need to make sure that the /dynaTraceMonitor signal is sent back to the "root server". The dtagent.js will collect data in the browser and will send the collected data back on the configured URL - by default this is /dynaTraceMonitor. Naturally this request will also end up at the CDN. Therefore you need to configure the CDN to forward this request to the web server that contains the web server agent. So - this should just be a matter of correctly configuring the CDN

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 Flora H. · Sep 04, 2014 at 02:25 AM

Andreas,

My customer copied the uem dtagent on the CDN, and now they can access the dt agent from cdn manually, but UEM is not able to pick it up. They even tried to specify the agent location as the cdn url but no luck. Any thoughts? 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.

  • 1
  • 2
  • ›

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

3 People are following this question.

avatar image avatar image avatar image

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