-
1. Re: JSP Monitoring
mazz Jul 27, 2010 8:35 AM (in response to glyph5)1 of 1 people found this helpfulYou 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"
and
<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? -
2. Re: JSP Monitoring
mazz Jul 27, 2010 8:38 AM (in response to mazz)1 of 1 people found this helpfulAdditionally, 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
-
3. Re: JSP Monitoring
ips Jul 27, 2010 10:34 AM (in response to glyph5)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.