tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Buning <bun...@kicktipp.de>
Subject Re: few slow requests
Date Wed, 04 Aug 2010 17:41:40 GMT
Thanks again!


Am 04.08.2010 15:38, schrieb Christopher Schultz:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Peter,
>
> On 8/4/2010 3:33 AM, Peter Buning wrote:
>    
>> Hi Chris,
>>
>> Am 03.08.2010 22:08, schrieb Christopher Schultz:
>>      
>>> -----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 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:
>>>
>>>
>>>        
>>>> 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.
>>>        
> Of course, I meant "method", not "menu". ;)
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkxZbXAACgkQ9CaO5/Lv0PBmWwCfaysShxyRIbreEALGSBAYnAWh
> aBkAmQGaJBjNG+6zRF1dhgSH92z5JoKN
> =CcYD
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>    


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message