On 27/04/2009, roger.steen...@lhsystems.com <roger.steen...@lhsystems.com> wrote: > Many Thanks for your answer. > > > I will describe our problem in another way: > > Our jmeter script has a general timeout of 10 minutes and we call the jmeter > script by nagios. The jmeter script makes some HTTP request and some SQL > requests. When everything runs fine nagios will show the results. > When a HTTP request hangs because there is no answers from the server our > jmeter script timed out and there will be no information of each check for > nagios. Only the information, that the script timed out. But we need the > information for the checks. > > > So we would like to implement a timeout to each request inside the jmeter > script. For example: the normal duration for an http request would be between > 3 and 10 sec, so we will set the timeout to 30 sec. If a timeout occurs the > jmeter script should write an error/timeout message into the jtl-file (jmeter > ... -l test.jtl) that will be read by nagios. > > > Is this possible or must this be implemented into jmeter by our self. > We will try to implement it and give it to the community to have it in every > new version. >
I have just added some code to JMeter that allows samplers (including HTTP) to be interrupted when using the menu Stop command. This allows an entire test plan to be stopped abruptly, e.g. by adding a parallel thread-group with a Test Action sampler. If you want to try this, it is in the current nightly code. It would certainly be useful to add individual timeouts to samplers. This should be fairly easy for some samplers, but others may be harder to implement. If you do have some suggested fixes, please provide them as Bugzilla patches, thanks! > Kind regards and thanks for an answer > > > Roger Steen > > > > > Sitz der Gesellschaft / Corporate Headquarters: Lufthansa Systems Business > Solutions GmbH, Raunheim, Registereintragung / Registration: Amtsgericht > Darmstadt 83850 > Geschaeftsfuehrung / Management Board: Bernd Appel > > > -----Ursprüngliche Nachricht----- > > Von: sebb [mailto:seb...@gmail.com] > Gesendet: Donnerstag, 23. April 2009 16:38 > An: JMeter Developers List > Betreff: Re: Timeout Problems for HTTP, SOAPXML and SQL requests > > > On 23/04/2009, roger.steen...@lhsystems.com > <roger.steen...@lhsystems.com> wrote: > > We are using jmeter 2.3.1 for application testing. > > Current version is 2.3.2. > > > > > For testing HTTP Request we need to set a timeout, for example 20 sec > > > > > > In the file jmeter.properties we found > > > > # set the socket timeout (or use the parameter http.socket.timeout) > > > > #httpclient.timeout=0 > > > > # 0 == no timeout > > > > We have set httpclient.timeout=2 or to 10 but we got no timeout > > > > Which HTTP Sampler are you using? > > The above settings only apply to the HttpClient one. > > > > > > > In the JMeter API we found > > > > setTimeout(String) > > <http://jakarta.apache.org/jmeter/api/org/apache/jmeter/protocol/http/sa > > mpler/WebServiceSampler.html#setTimeout%28java.lang.String%29> - Method > > in class org.apache.jmeter.protocol.http.sampler.WebServiceSampler > > <http://jakarta.apache.org/jmeter/api/org/apache/jmeter/protocol/http/sa > > mpler/WebServiceSampler.html> > > > > > > > > Is it possible to set a timeout for a HTTP, SQL and SOAP request? In the > > GUI and in the jmx file we didn't found any entry. > > > > > > > > Is there any timeout control under development? > > Not at present. > > > Or is there any other > > way to implement/set a specific timeout for a request? > > I don't think so. > > Feel free to open a Bugzilla enhancement request with details of what you > want. > > > > > Thanks for help > > > > > > > > Roger Steen > > > > > > > > > > > > Sitz der Gesellschaft / Corporate Headquarters: Lufthansa Systems > Business Solutions GmbH, Raunheim, Registereintragung / Registration: > Amtsgericht Darmstadt 83850 > > Geschaeftsfuehrung / Management Board: Bernd Appel > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmeter-dev-unsubscr...@jakarta.apache.org > For additional commands, e-mail: jmeter-dev-h...@jakarta.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmeter-dev-unsubscr...@jakarta.apache.org > For additional commands, e-mail: jmeter-dev-h...@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-dev-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-dev-h...@jakarta.apache.org