can tomcat give me page loadtime stats?

2003-10-09 Thread Glanville, Jay
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.

JDG

--
Jay Glanville
Web Developer
jay.glanville @ naturalconvergence . com
(613) 725-2030 x393
http://www.naturalconvergence.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: can tomcat give me page loadtime stats?

2003-10-09 Thread Tim Funk
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: can tomcat give me page loadtime stats?

2003-10-09 Thread Jay Glanville
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: can tomcat give me page loadtime stats?

2003-10-09 Thread Tim Funk
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: can tomcat give me page loadtime stats?

2003-10-09 Thread Shapira, Yoav

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:[EMAIL PROTECTED]
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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: can tomcat give me page loadtime stats?

2003-10-09 Thread Jay Glanville
I have a feeling that these variables (%D and %T) are not available in
4.1.12 as they don't actually resolve to anything in the access log.  I
can determine that they were added in AccessLogValue (ver 1.3), but I
don't know what the CVS tag is for version 4.1.12 (ver 1.3 has these
tags: s1ap8_i3, s1ap8_i2, s1ap8_i1, jwsdp_12__02, jwsdp_12__01,
TOMCAT_5_0_2, TOMCAT_5_0_1)

Thanks for you help.

JDG

 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: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: can tomcat give me page loadtime stats?

2003-10-09 Thread Tim Funk
yeah, %D and %T are newer than 4.1.12. If your stuck with that version - 
you'll need to write a filter which logs to file.

-Tim

Jay Glanville wrote:

I have a feeling that these variables (%D and %T) are not available in
4.1.12 as they don't actually resolve to anything in the access log.  I
can determine that they were added in AccessLogValue (ver 1.3), but I
don't know what the CVS tag is for version 4.1.12 (ver 1.3 has these
tags: s1ap8_i3, s1ap8_i2, s1ap8_i1, jwsdp_12__02, jwsdp_12__01,
TOMCAT_5_0_2, TOMCAT_5_0_1)
Thanks for you help.

JDG


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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: can tomcat give me page loadtime stats?

2003-10-09 Thread Subir Sengupta
You could also write a filter to measure performance.

http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html

Subir

-Original Message-
From: Jay Glanville [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 09, 2003 9:12 AM
To: 'Tomcat Users List'
Subject: RE: can tomcat give me page loadtime stats?


I have a feeling that these variables (%D and %T) are not available in
4.1.12 as they don't actually resolve to anything in the access log.  I can
determine that they were added in AccessLogValue (ver 1.3), but I don't know
what the CVS tag is for version 4.1.12 (ver 1.3 has these
tags: s1ap8_i3, s1ap8_i2, s1ap8_i1, jwsdp_12__02, jwsdp_12__01,
TOMCAT_5_0_2, TOMCAT_5_0_1)

Thanks for you help.

JDG

 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: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]