前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >JMeter: why connect time = 0?

JMeter: why connect time = 0?

作者头像
Jerry Wang
发布2019-07-01 11:17:45
1.4K0
发布2019-07-01 11:17:45
举报
image
image

Check keep-alive settings of your samplers. With keep-alive turned on for all samplers each thread would establish connection only once, at the start of test, and reuse it for other requests.

2 down vote This value of connection time and keep-alive setting, is more usable when application is running on SSL handshake. If this setting is on and once the connection has been established, response times will decrease. Connection time value is important to know if the changes in response times you’re seeing are caused by these connections being established or if they are due to a resource being exhausted.

Earlier versions of JMeter doesn’t show Connection time as a separate parameter, the latency in JMeter includes the connection time. So you’ll need to subtract the connect time from latency to get pure latency value.

https://stackoverflow.com/questions/41790285/what-the-difference-latency-time-vs-connect-time-in-jmeter

Connect Time

time taken to establish TCP connection (at TCP layer in TCP/IP model) b/w client and server using TCP Handshake. If TCP Handshake is successful, then the client can send further requests (HTTP request - HTTP layer). If not, the client can’t talk to the server. This can happen if the server is not live or busy responding other requests.

Latency Time

JMeter measures the latency from just before sending the request to just after the first response has been received. (Connect time is included while calculating Latency Time)

Elapsed time

JMeter measures the elapsed time from just before sending the request to just after the last response has been received

Keep-alive is an HTTP feature to keep a persistent connection between round trips, so that it does not initiate a new one on every single request. This feature has many benefits, but one of the trade-offs is that it holds resources on the server side and that can be an issue under heavy load.

image
image
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019年06月29日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Connect Time
  • Latency Time
  • Elapsed time
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档