jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak Shetty <shet...@gmail.com>
Subject Re: Timeouts and HTTPClient - do they work?
Date Fri, 03 Jun 2011 21:19:46 GMT
Hi
a timeout means x amount of time elapsed without any response(i.e. no bytes
received). However that doesnt mean the response must complete by that time.
for e.g.
if you have a timeout of 10 seconds , and the server sends you 1Kb every
second for 60 seconds , thats not a timeout since the largest interval of
time without data is 1 second.

regards
deepak

On Fri, Jun 3, 2011 at 1:37 PM, jlindwall <jlindwall@yahoo.com> wrote:

> I am using an "HTTP Request HTTPClient" sampler and setting the "Response
> Timeout" to 500 ms.  I am also collecting results to a file in a "View
> Results in Table" listener.
>
> After a test run I saw that one request had failed because of a response
> timeout.  Nice.
>
> I then examined the output file from the "View Results in Table" listener
> and found the offending request -- indeed it had exceeded the 500 ms
> timeout
> value (515 ms in this case).  Looking closer at the other entries in the
> output file however I see 13 other entries that seem to have taken more
> then
> 500 ms; the slowest one was 619ms. However, these requests did NOT fail
> with
> a timeout.
>
> Here is an example record from the output xml file (the responseData has
> been omitted):
>
> <httpSample t="619" lt="619" ts="1307125237929" s="true" lb="HTTP Request
> HTTPClient" rc="200" rm="OK" tn="Thread Group 1-12" dt="text" by="713">
>  <responseData class="java.lang.String">[edited out]</responseData>
>  <cookies class="java.lang.String"></cookies>
>  <method class="java.lang.String">GET</method>
>  <queryString class="java.lang.String"></queryString>
> </httpSample>
>
> Am I misunderstanding the timeout functionality?  It does seem to
> essentially work -- I can see request timing out if I set the timeout low
> enough.  I just wonder why some of these lengthy requests that exceed the
> timeout value would not register to httpclient as a timeout.
>
> Thanks for any insight,
> John
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Timeouts-and-HTTPClient-do-they-work-tp4452459p4452459.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message