3 Replies Latest reply on Jul 27, 2010 10:34 AM by Ian Springer

    JSP Monitoring

    Shaun Smith Newbie



      I was wondering if there is a plugin or configuration with the JOPR JBoss 5 plugin that allows for monitoring .jsp pages?


      We are trying to monitor how our users are accessing our application. Currently we are using the Apache http access log configuration but would like to migrate to using JON or JOPR.

        • 1. Re: JSP Monitoring
          mazz Master

          You can get calltime metrics for Web Applications - in the jboss-as-5 plugin, I see these child service in the descriptor:


          <service name="Embedded Web Application Context"




          <service name="Web Application Context"


          each of those has this metric:


          <metric property="responseTime"

          http://git.fedorahosted.org/cgi-bin/gitweb.cgi#l678           dataType="calltime" defaultOn="false" defaultInterval="600000" units="milliseconds" destinationType="URL"
          http://git.fedorahosted.org/cgi-bin/gitweb.cgi#l679           description="the minimum, maximum, and average response times for requests serviced by this webapp"/>
          It isn't .jsp specific (I don't think JBossAS 5 provides JSP-specific metrics, does it?) but it does provide calltime data on a per-URL basis. Perhaps that would be useful?
          1 of 1 people found this helpful
          • 2. Re: JSP Monitoring
            mazz Master

            Additionally, you can also use the apache plugin to monitor Apache itself (which sounds like you are doing that already by looking at the access log). The apache plugin has similar metrics as the jboss-as-5 plugin to give you URL calltime data. IIRC you have to compile and install a special Apache module for it to emit metric data that can be consumed by monitoring products: http://rhq-project.org/display/JOPR2/Apache+2.x+Response+Time+Config

            1 of 1 people found this helpful
            • 3. Re: JSP Monitoring
              Ian Springer Master

              You weren't specific about what you wanted to monitor for the JSPs. If you are looking for average, minimum, and maximum response times and number of requests for each JSP, then the response-time (aka call-time) metric feature Mazz mentioned will do the trick. Note, in order to use this feature, you will have to instrument your managed server to collect the response time data. For JBoss AS or Tomcat, this involves configuring a response-time servlet filter in your war's web.xml, and for Apache, it involves configuring a response-time Apache module. Due to licensing issues, the Apache response-time module is currently not included with RHQ. However, it is included with the JBoss Operations Network (JON) product, which is based on RHQ. For details on configuring the response-time feature, see the RHQ docs.