automatictester

my thoughts on test automation

JMeter – org.apache.http.NoHttpResponseException: the target server failed to respond

I’ve been executing same set of tests using JMeter 2.12 against same test environment, but from different locations. Depending on network location (and network latency), I found a number of tests to fail without a good reason, with following exception:

org.apache.http.NoHttpResponseException: the target server failed to respond

I tried a couple of tricks and finally found a solution. In HTTP Request Defaults, I selected HttpClient4. In user.properties, I set httpclient4.idletimeout=120. This finally got rid of network-dependent execution errors.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: