Is there a way to specify a timeout on a http sampler?  During load testing
I am seeing the majority of my page requests being serviced in less than 2
seconds.  Occasionally however a request takes much longer (several minutes
or worse no response ever received).  I would like to be able to put a limit
on how long jmeter waits for outstanding requests.  I found a post to this
emailing list in March 2004:

 

I found a working solution for my timeout-problem:
Java 1.4 has got a property 'sun.net.client.defaultReadTimeout'. This can be
set to a appropriate value and raises a 'java.io.IOExcetion: Stream closed'
instead of waiting infinitely. Just set this property in the jmeter.bat as a
java parameter by 'java -Dsun.net.client.defaultReadTimeout=1000 ...' for a
1 second timeout for example.

 

 

Is this the way I should proceed or is there another way to solve the
problem?

 

Angelo.

Reply via email to