tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: few slow requests
Date Tue, 03 Aug 2010 20:08:23 GMT
-----BEGIN PGP SIGNED MESSAGE-----
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 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:

> http://svn.apache.org/repos/asf/tomcat/tc5.5.x/tags/TOMCAT_5_5_30/container/catalina/src/share/org/apache/catalina/valves/AccessLogValve.java

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

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxYdzcACgkQ9CaO5/Lv0PBxOQCgg2pxc/Gaabg0VFo1IFN7qZbj
Ts4AmgKsc/MjAOzz9ZYsh7PhuMZDzAZQ
=CEl2
-----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