tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: can tomcat give me page loadtime stats?
Date Thu, 09 Oct 2003 15:46:15 GMT

Howdy,
And so, you probably want pattern="page %U took %D milliseconds to
serve" in server.xml.  

Be very careful with your terminology in this area, because people draw
conclusions about performance from this log file.  The time to "create"
a page can be defined in many different ways.  The time to serve a page,
which is what the access log measures, is more precise.  "How long it
took tomcat to calculate the contents" is similarly ambiguous.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Tim Funk [mailto:funkman@joedog.org]
>Sent: Thursday, October 09, 2003 11:44 AM
>To: Tomcat Users List
>Subject: Re: can tomcat give me page loadtime stats?
>
>D'oh! The catalina javadocs are out of date (but not by much) on the
>website.
>In your local version of the javadoc, there should be the following:
>
>%D - Time taken to process the request, in millis
>%T - Time taken to process the request, in seconds
>
>-Tim
>
>
>Jay Glanville wrote:
>
>> Good.  Thanks.  Now, a little help is requested in how to use
>> AccessLogValue.  (and now that I read the first answer, I realize
that I
>> might not have phrased my question as unambiguously as possible).
>>
>> I'd like to have the following information logged:
>>    page x took y milliseconds to create (or something like that)
>>
>> According to
>>
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/org/ap
>> ache/catalina/valves/AccessLogValve.html, I would use %U for x (the
>> page's URL), but what would I use for y (the amount of time it took
to
>> create the page)?  %t only gives me the date and time it was
requested,
>> not how long it took Tomcat to calculate the page's contents.
>>
>> Thanks
>>
>> JDG
>>
>>
>>
>>>See the AccessLogValve javadocs.
>>>
>>>-Tim
>>>
>>>Glanville, Jay wrote:
>>>
>>>
>>>>Is there a way for tomcat to give me information on how
>>>
>>>long it takes
>>>
>>>>to load a page?
>>>>
>>>>I have a web application upon which I wish to improve it's
>>>>performance. Before I can do any attempts at improvement, I
>>>
>>>need a way
>>>
>>>>to measure its performance.  One of the ways that I was considering
>>>>measuring this delta was to see how long Tomcat takes to
>>>
>>>load a page.
>>>
>>>>Can tomcat product this information for me (configuration
>>>
>>>setting, log
>>>
>>>>files, etc)?  Or do I need to manually add timestamp information to
>>>>the top and bottom of my page templates?
>>>>
>>>>Suggestions appreciated.
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


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


Mime
View raw message