title: Jmeter giving NoHttpResponseException: The target server failed to respond erro
body: <p>I am doing a performance test on a domain.
  I am getting <code>Non HTTP response message: The target server failed to respond response message.</code></p>
  
  <p>Below is snapshot of the the log.</p>
  
  <pre><code>&lt;requestHeader class="java.lang.String"&gt;Connection: keep-alive
  Accept-Language: de
  Accept: image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */*
  User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0
  Accept-Encoding: gzip, deflate
  Pragma: no-cache
  Authorization: Basic Y2FzZXdvcmtlcjAxOjFxYXkiV1NY
  Content-Type: application/x-www-form-urlencoded
  Content-Length: 218
  Host: mydomain.test.com
  &lt;/requestHeader&gt;
    &lt;responseData class="java.lang.String"&gt;org.apache.http.NoHttpResponseException: The target server failed to respond&amp;#xd;
                  at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:95)&amp;#xd;
                  at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:61)&amp;#xd;
                  at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:254)&amp;#xd;
                  at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:289)&amp;#xd;
                  at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:252)&amp;#xd;
                  at org.apache.http.impl.conn.ManagedClientConnectionImpl.receiveResponseHeader(ManagedClientConnectionImpl.java:191)&amp;#xd;
                  at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:300)&amp;#xd;
                  at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:127)&amp;#xd;
                  at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:715)&amp;#xd;
                  at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:520)&amp;#xd;
                  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)&amp;#xd;
                  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)&amp;#xd;
                  at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:481)&amp;#xd;
                  at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:298)&amp;#xd;
                  at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)&amp;#xd;
                  at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1105)&amp;#xd;
                  at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1094)&amp;#xd;
                  at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:429)&amp;#xd;
                  at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257)&amp;#xd;
                  at java.lang.Thread.run(Unknown Source)&amp;#xd;
  &lt;/responseData&gt;
  </code></pre>
  
  <p>I have tried several times. Even tried reducing the thread count and running with very less load.</p>
  
  <p>But each time, I'm getting 40% error rate for the same test cases(both with high load and less load).</p>
  
  <p>The Apache logs are clean. There's no error in the logs.</p>
  
  <p>Please suggest what else I can check.</p>