Use NewRelic to monitor Java applications on Tomcat7

1

As I monitor PHP and Django, I would like to monitor the "Browser page load time" of applications .

I installed "Java agent self-installer" as described in New Relic documents . It's all right, I'm monitoring various features of JVM , I monitor access to DB and everything else.

The problem is that "Browser page load time" does not enable as in PHP and Python / Django ..

Why?

    
asked by anonymous 19.02.2014 / 16:51

1 answer

2

I do not know if this is exactly the case with your application, but some browsers do not send the information that NewRelic uses to build this graph.

The link below has code snippets to send the information:

link

Some JavaScript scripts should be added in the header:

<script type="text/javascript">
   var NREUMQ=[];NREUMQ.push(["mark","firstbyte",new Date().getTime()]);
</script>

... and in the footer:

<script type="text/javascript">
 if (!NREUMQ.f) NREUMQ.f=function() {
   NREUMQ.push(["load",new Date().getTime()]);
   var e=document.createElement("script");
   e.type="text/javascript";e.src="https://d7p9czrvs14ne.cloudfront.net/11/eum/rum.js";document.body.appendChild(e);if(NREUMQ.a)NREUMQ.a();};if(window.onload!==NREUMQ.f){NREUMQ.a=window.onload;window.onload=NREUMQ.f;};NREUMQ.push(["nrf2","beacon-1.newrelic.com","api-key",appID,"cV5eEkBfCF1WRBgECFZEQwNAbwVBQ1peAgdGWF8IQR8LR1ZEQQgDRQ==",6,707, new Date().getTime()]);
</script>
    
19.02.2014 / 21:37