You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Raphael Santos <fa...@gmail.com> on 2008/11/18 16:28:46 UTC
Request Logging in Tomcat 6
Hi,
I've been working with performance measurements of web services and I've
faced this problem. For each request to my system (running in a tomcat 6) I
need to log these information:
Received Bytes (request content length)
Served Bytes (response content length)
Response Time (the time taken by the server to process the request)
CPU Time (optional)
I/O Time (optional)
URI
Cookies(the value of some specific cookies)
Request Content Data
I found something about Tomcat Access Log Valve (
http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html
http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html ) but this valve
do not offer enough information for me.
Somebody can help me ?
--
View this message in context: http://www.nabble.com/Request-Logging-in-Tomcat-6-tp20561773p20561773.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
Re: Request Logging in Tomcat 6
Posted by Kees Jan Koster <kj...@kjkoster.org>.
Dear Raphael,
> I've been working with performance measurements of web services and
> I've
> faced this problem. For each request to my system (running in a
> tomcat 6) I
> need to log these information:
>
>
> Received Bytes (request content length)
> Served Bytes (response content length)
> Response Time (the time taken by the server to process the request)
Actually, the latter two are simple:
http://java-monitor.com/forum/showthread.php?t=5
--
Kees Jan
http://java-monitor.com/forum/
kjkoster@kjkoster.org
06-51838192
The secret of success lies in the stability of the goal. -- Benjamin
Disraeli
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Request Logging in Tomcat 6
Posted by Raphael Santos <fa...@gmail.com>.
Thank you a lot Kees,
acctually I'm checking 2 possible implementations out. These two options
seems to be good.
1- to use Servlet Filters
2- to extend a AccessLogValve
Regarding CPU time I have searched deep in the link you have passed me and
I found something about
http://www.javaworld.com/javaworld/javatips/jw-javatip92.html?page=1 JVMPI
(JVM Profiler Interface). It seems to offer a way to obtain such information
So, thanks again
Best Regards
Kees Jan Koster wrote:
>
> Dear Raphael,
>
>> I've been working with performance measurements of web services and
>> I've
>> faced this problem. For each request to my system (running in a
>> tomcat 6) I
>> need to log these information:
>>
>>
>> Received Bytes (request content length)
>> Served Bytes (response content length)
>> Response Time (the time taken by the server to process the request)
>>
>>
>> CPU Time (optional)
>>
>> I/O Time (optional)
>>
>> URI
>> Cookies(the value of some specific cookies)
>> Request Content Data
>
>
> If you need this much detail, best write your own servlet filter and
> log it yourself.
>
> http://www.onjava.com/pub/a/onjava/2001/05/10/servlet_filters.html
>
> CPU and I/O times are tricky. If you get that to work, let me know. :-)
>
> --
> Kees Jan
>
> http://java-monitor.com/forum/
> kjkoster@kjkoster.org
> 06-51838192
>
> Human beings make life so interesting. Do you know that in a universe
> so full of wonders,
> they have managed to invent boredom. Quite astonishing... -- Terry
> Partchett
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
-----
---
Raphael Santos
http://www.inf.ufes.br/~santos http://www.inf.ufes.br/~santos
--
View this message in context: http://www.nabble.com/Request-Logging-in-Tomcat-6-tp20561773p20578312.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Request Logging in Tomcat 6
Posted by Kees Jan Koster <kj...@kjkoster.org>.
Dear Raphael,
> I've been working with performance measurements of web services and
> I've
> faced this problem. For each request to my system (running in a
> tomcat 6) I
> need to log these information:
>
>
> Received Bytes (request content length)
> Served Bytes (response content length)
> Response Time (the time taken by the server to process the request)
>
>
> CPU Time (optional)
>
> I/O Time (optional)
>
> URI
> Cookies(the value of some specific cookies)
> Request Content Data
If you need this much detail, best write your own servlet filter and
log it yourself.
http://www.onjava.com/pub/a/onjava/2001/05/10/servlet_filters.html
CPU and I/O times are tricky. If you get that to work, let me know. :-)
--
Kees Jan
http://java-monitor.com/forum/
kjkoster@kjkoster.org
06-51838192
Human beings make life so interesting. Do you know that in a universe
so full of wonders,
they have managed to invent boredom. Quite astonishing... -- Terry
Partchett
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org