http - Jmeter close connection before my test finish -
i use jmeter http sampler test sequence of http requests , choosed "use keepalive". few threads jmeter closed connection tcp fin before requests send out.
as picture shown, 172.19.0.101 jmeter,172.19.0.111 server. rest of requests can send in new connection , out of session.
it can of 2 reasons:
first reason - timeout
whether timeout reached (default value 60 seconds, , configurable. if not configured, uses connectiontimeout parameter value in tomcat server).
the default connection timeout of apache httpd 1.3 , 2.0 little 15 seconds , 5 seconds apache httpd 2.2 , above
i observed request got response after 10 seconds (15 -> 29 seconds) before sending fin signal terminate connection.
references:
- https://tools.ietf.org/id/draft-thomson-hybi-http-timeout-01.html#p-timeout
- https://en.wikipedia.org/wiki/http_persistent_connection
- https://tomcat.apache.org/tomcat-7.0-doc/config/http.html
second reason - 'max' parameter
may reached number of requests can sent on single persistent connetion.
set implementation in http samplers httpclient4 , try.
from jmeter http sampler documentation.
jmeter sets connection: keep-alive header. not work default http implementation, connection re-use not under user-control. work apache httpcomponents httpclient implementations.
Comments
Post a Comment