I am executing one script using Jmeter for load testing.I am getting error in between lets say for eg. If I applied load of 500users, till 250 users threads are running successfully then error comes of connection timed out error.Then, again it running successful for some of threads then error.
Code is as follow:-
Thread Name: Thread Group 1-1274
Sample Start: 2016-09-15 15:02:13 IST
Load time: 21004
Connect Time: 21004
Latency: 0
Size in bytes: 2206
Headers size in bytes: 0
Body size in bytes: 2206
Sample Count: 1
Error Count: 1
Data type ("text"|"bin"|""): text
Response code: Non HTTP response code: java.net.ConnectException
Response message: Non HTTP response message: Connection timed out: connect
Response headers:
HTTPSampleResult fields:
ContentType:
DataEncoding: null
I need to break the server.
Can anyone help me for this?
MaxUserPort, which by default is, I believe, 5000, but I suggest on JMeter machine to increase it to max 65534. And second, often even more important, isTcpTimedWaitDelay, which defines how long the ports are staying inTIME_WAITstate after use. Default is I think 240 seconds, which is way too long - it means that port will sit there for 3 min idle, and nobody can use it. Change that value to 30.