Reputation: 11
I have been trying to run a jmeter test, but everytime if some requests take more than 15 seconds to execute than it shows it as an error and says "Target sever failed to respond". I have already set all the timeout in apache2, mySQL and php config to very high. For the jmeter file, the connection timeout is 30 seconds and Response timeout is set to 120 seconds. You can check in the image that all the errors are after 15 seconds and they are random as well.
Upvotes: 1
Views: 774
Reputation: 463
Try to disable KeepAlive in HTTP Request.
If you need to have KeepAlive enabled, try this
jmeter.properties
file uncomment this line hc.parameters.file=hc.parameters
and change this line httpclient4.retrycount=2
hc. parameters
file uncomment this line and set number of miliseconds to greater value(e.g. 30s) http.socket.timeout$Integer=30000
Take care! This strategy is very aggresive to server
Upvotes: 1