tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: few slow requests
Date Wed, 04 Aug 2010 13:38:56 GMT
Hash: SHA1


On 8/4/2010 3:33 AM, Peter Buning wrote:
> Hi Chris,
> Am 03.08.2010 22:08, schrieb Christopher Schultz:
>> Hash: SHA1
>> Peter,
>> On 8/3/2010 10:55 AM, Peter Buning wrote:
>>> we tested our tomcat 5.5 server (Debian system) with the apache
>>> benchmark tool. We send requests for a small png-file (300 bytes).
>>> Nearly all requests were done in 0 or 1 milliseconds. But there were a
>>> few request which needed more than 10 ms and the slowest request needed
>>> 106 ms.
>> Over what period of time? How often do the 106 and/or 10 responses
>> occur? You may be encountering some simple thing like the OS wanting to
>> get some of its own work done occasionally.
> The slower response times are relative seldom, nearly 0,1 % of the
> requests. I think you are right and the  OS is working "something" in
> this period. I just would like to understand exactly what happens. I
> will continue to search for the reasons in this direction.

Try using 'sar' (you may have to install it... I don't think Debian
installs it by default).

>>> the 106 ms is logged in the access log file. We used the %D pattern for
>>> the request time in millis.
>>> It seems not to be a network problem. We can see the same behavior with
>>> a remote and a localhost test. Nevertheless, does anybody know, when
>>> tomact exactly starts and stop the time for logging the request?
>> The source code for org.apache.catalina.valves.AccessLogValve is
>> available here:
>> Look at the "invoke" menu.

Of course, I meant "method", not "menu". ;)

- -chris
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message