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 Tue, 03 Aug 2010 20:08:23 GMT
Hash: SHA1


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 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.

> So, we want to know, why there are a few request that took so much more
> time than the rest of the requests. Has anybody an idea where the time
> can be consumed?

Lots of things are being done by your computer other than running your
webapp's code. There are lots of things that could be causing temporary

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


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

View raw message