Hallo Rainer,

thanks for your Input
- of course i have to change my FIRST and LAST variant (the FIRST_NAME i will 
use to check if the worker has changed) - but you're right - i am more 
interested in the LAST values.

Changed %T to %D -> works fine, thanks

We upgraded to 1.2.26 last week - but the Values for ROUTE and DURATION are the 
same than before (1.2.25) - and we haven't set JkRequestLogFormat 
explicitly.(of course i wrote DURATION without I - now it's ok).

thanks
best ahmed



-------- Original-Nachricht --------
> Datum: Thu, 28 Feb 2008 23:52:40 +0100
> Von: Rainer Jung <[EMAIL PROTECTED]>
> An: Tomcat Users List <users@tomcat.apache.org>
> Betreff: Re: JkRequestLogFormat Options

> In addition to Freds remark:
> 
> Usually you want the "LAST" variant, instead of the "FIRST" variant. The 
> two are the same, if a loab balancer only tries one worker, but in case 
> of an error and failover, FIRST will be the first worker tried (so the 
> failed one) and LAST the last one, so usually the successful one (unless 
> all workers fail).
> 
> %T: response time in seconds, and I think it always gets rounded down. 
> So usually not very useful
> 
> Instead you could use the httpd standard %D, which is response time in 
> microseconds.
> 
> Last remark: until JK 1.2.25 the variables JK_WORKER_ROUTE and 
> JK_REQUEST_DURATION where only filled, if some JkRequestLogFormat was 
> set. In your version 1.2.26 both of them should get set even with a 
> JkRequestLogFormat (but only, if the request gets handled by mod_jk, so 
> not for static content, that is returned by the web server without any 
> Tomcat interaction).
> 
> Regards,
> 
> Rainer
> 
> Ahmed Musa schrieb:
> > Hallo,
> > 
> > I am logging the mod_jk Output through the Apache access_log - as
> written in the reference found under
> > http://tomcat.apache.org/connectors-doc/reference/apache.html
> > 
> > Because i want to get clearness about what exactly is going on in our
> system i use the following LogFormat:
> > 
> > LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"
> \"%{Cookie}i\" \"%{Set-Cookie}o\" %{pid}P %{tid}P%T 
> > %{JK_WORKER_NAME}n %{JK_REQUEST_DURATON}n %{JK_WORKER_ROUTE}n
> %{JK_LB_FIRST_NAME}n %{JK_LB_FIRST_BUSY}n %{JK_LB_FIRST_VALUE}n
> > %{JK_LB_FIRST_ACCESSED}n %{JK_LB_FIRST_READ}n
> %{JK_LB_FIRST_TRANSFERRED}n %{JK_LB_FIRST_ERRORS}n %{JK_LB_FIRST_ACTIVATION}n
> > %{JK_LB_FIRST_STATE}n %{JK_LB_LAST_NAME}n" mod_jk_log
> > 
> > ...everthing works fine except the Options responsible for the Request
> Duration.
> > 
> > Mostly neither %T nor %{JK_REQUEST_DURATON}n have a Value (%T mostly is
> 0 an the other Parameter is "-").
> > At some Requests i found the %T has a value like for example 2 or 3.. -
> and JK_REQUEST DURATION has "-"
> > or %T is 0 and JK_REQUEST_DURATION has an value like 2 or 3 ...
> > 
> > First - why are there not values at each request ?
> > Second -i think both Options are measuring the same Value - why they are
> not the same ?
> > Third - why they are not showing seconds.microseconds as written in the
> reference but only (I think so) rounded seconds.
> > 
> > We use mod_jk 1.2.26
> > 
> > Thanks for help
> > Best 
> > ahmed
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to