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. enter image description here

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:

  1. https://tools.ietf.org/id/draft-thomson-hybi-http-timeout-01.html#p-timeout
  2. https://en.wikipedia.org/wiki/http_persistent_connection
  3. 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.

  1. https://tools.ietf.org/id/draft-thomson-hybi-http-timeout-01.html#p-max

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

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -