tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Access-log ordering
Date Fri, 19 Apr 2013 02:33:33 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Mark,

On 4/18/13 6:30 PM, Mark Thomas wrote:
> On 18/04/2013 22:58, Christopher Schultz wrote:
>> So, this is my due diligence to determine if, in addition to the
>>  mountain of evidence we otherwise have, Tomcat does in fact log
>>  requests in the order in which they are received.
> 
> Tomcat logs requests in the order they complete (so it can log the
>  time spent processing, bytes sent, etc.).
> 
> Additionally, there is a sync block around the writing to the log 
> which is not guaranteed to use fair ordering so it is possible in a
> busy server for request A to finish before request B but for 
> request B to be logged first. If those requests are on the same 
> connection then they will always be logged in the order they were 
> made.

Okay, that definitely does help: this server is /not/ highly-loaded
(those two examples I showed were the only requests received during
that particular second of the day) and having request B complete
before request A completes (especially when they are roughly
equivalent in terms of time-to-complete at ~200ms each) clearly shows
that the client is /not/ waiting for request A to complete before
submitting request B.

Thanks,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJRcKz8AAoJEBzwKT+lPKRY5osP/0FXQeOQdfpXiw4BbCPGBJNY
LAxvIWZ0NPsmqFtwPzIBrt4RvAbTIZrix1JZUGExT0xPE46sDLC2OqQ//P5nEvkE
J9npnAIqGzj+qG1ZOAeHcBu8TyZaIIEd4prrH7fekFpTeflLdClmtdyuEwKbEGXi
cwJfNFdDHkFBnJ1c/ap7bOSCdUU3Kg5S7Sg+Q9aD6ottdbkyt/FEVFuqKZyV5XT/
zk+1vC19bWgY+AXXNsCaPGLF2rOM/CGhW9IbOMiZd/W90NMki/aDhH7/VdbljdXa
VI8rEEgZ+5Ad6BBZwfGibpJTVwwuaScYNyQaEVIqq+1yu7weAFSCWzhva+s7yUvz
UkzivLt9AYMXNDYvGWIXRe7Np+dq8+SneiPt/eoXn5+9oRQ34gDmU2VShTB67Ok9
zmRRYTJ7DnPKyiH6UZR/YWw52nCDJZz1lRl2as/dSRPWXWgtmCMJZLqwM2oj/Y1o
m1T3pqMn8MQBqGx0IWjghfTSwqQMmPmFu1qWlyHe5ZNh0CG3JGu4nXYHSNWhXDCu
vUpxJpVwodd0tXMKsHsqyRVU/UcKO75YBMdVYyjByaFdIM032whBcZ/uLQQG88Fk
gu5PBCvnJ6P1/D5v1Uu9HufNuGwDagqGK/4YLEVr9jiQGH/l6V33++kkfxRwWvnk
dYhF9boj9T2zvJhY0JyR
=+0wg
-----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