tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Http 500 and %b in access log
Date Wed, 20 Jan 2010 22:06:06 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mohit,

On 1/20/2010 4:18 PM, Mohit Anchlia wrote:
> On the same note. Is there a way to log in access log at what time the
> request was received and time response was sent? I am planning to add
> more debug to see how long it waits before timing out.

It doesn't look like it:
http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html

You could always write a filter to capture this information, though the
notion of "request received" and "response sent" timestamps is a little
blurry: your request is never fully-read, so what's the timestamp for
that? If the request does complete, do you want the first-byte time or
the last-byte time? Or both? Same question for the response.

Finally, you can never really know exactly what time certain things
happen due to OS buffering, network lag, etc.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAktXfk4ACgkQ9CaO5/Lv0PCz5QCgmHtU6bSsxTeTZ+/cXeZgdHAi
2kkAoLOvrdmaBcnMMesMFkAjlJ16Z0Cz
=nVpQ
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message