Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JMeter gives "The target server failed" Error

We use Jmeter to do performance testing. I gave 10 threads(10 users) with ramp up time 60 secs, 4 out 10 users failing to logout getting org.apache.http.NoHttpResponseException: The target server failed to respond

Our script works this way. User logs in, access list page and do one submit operation and access the details page of the submit. Every user does three times and logs out. When I have just one time instead three time it works well, But when I configure the script to do for three times then I face above mentioned error.

Im not really not sure is it some thing related to Jmeter settings or server settings?

like image 835
Selvakumar Ponnusamy Avatar asked May 26 '14 18:05

Selvakumar Ponnusamy


3 Answers

disable KeepAlive. worked for me.

like image 53
Kaushal Avatar answered Nov 13 '22 03:11

Kaushal


disable KeepAlive worked for me. Open the http request sampler , there is a check box KeepAlive which is by default selected.

like image 39
yogeshbhagwat Avatar answered Nov 13 '22 05:11

yogeshbhagwat


This error is not from Jmeter end.

There may be an issue with one of the following:

  • Network Bandwidth (network cards, interfaces and switches)
    Monitor your environment
  • Timeout or retries
    edit the jmeter.properties file for retries = 3 and timeout = 120.

Also you can refer to below link for tuning your jmeter script

  • http://blazemeter.com/blog/jmeter-performance-and-tuning-tips

Hope this will help.

like image 39
Zubair M Hamdani Avatar answered Nov 13 '22 03:11

Zubair M Hamdani