tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <>
Subject Re: Tomcat Performance Measuring
Date Fri, 14 Feb 2003 05:24:11 GMT
TC 5.x has this (accesable via JMX).  I don't know if it will get
back-ported to the 4.1 branch.  However, as Peter said, it is a pretty
simple Filter:

public class MyTimingFilter implements Filter {

  public MyTimingFilter() {

  public void init(FilterConfig conf){

  public void destroy() {

  public void doFilter(ServletRequest req, ServletResponse res, FilterChain
     throws IOException, ServletException {
     long start = System.currentTimeMillis();
     chain.doFilter(req, res);
     long end = System.currentTimeMillis();
     // Implement something here to record the times.

"Garrett Dangerfield" <> wrote in message
> I've looked through the documentation I could find, and I looked through
> the source for AccessLogValve and I didn't see the option for what I'm
> looking for.
> I'm looking for getting a measurement of "page duration" (the time,
> preferrably in milliseconds, between when the server originally receives
> the first byte of a request and the time it sends the last byte of the
> response).
> What I'm trying to do is monitor the server load/response time back to
> the users, particularly by time of day.
> I've seen lots of test clients that do this, but I want to monitor my
> actual production system to see how it's doing.
> Thank you,
> Garrett.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message