JMeter HTTP Request hangs (probably on overloaded network) JMeter HTTP Request hangs (probably on overloaded network) jenkins jenkins

JMeter HTTP Request hangs (probably on overloaded network)


Why not just add a Response Timeout to HTTP Sampler:

Response Timeout : Number of milliseconds to wait for a response.

If you use HTTPClient4, then you may have the following option, add it to httpclient.parameters:

  • http.connection.stalecheck

See http://hc.apache.org/httpclient-legacy/preference-api.html#HTTP_connection_parameters:

Determines whether stale connection check is to be used. Disabling stale connection check may result in slight performance improvement at the risk of getting an I/O error when executing a request over a connection that has been closed at the server side.


You can set a default time out setting in Jmeter properties file, see below:(Jmeter version 2.6.11)

# Following properties apply to both Commons and Apache HttpClient# set the socket timeout (or use the parameter http.socket.timeout)# Value is in millisecondshttpclient.timeout=60000# 0 == no timeout