From issues-return-13555-archive-asf-public=cust-asf.ponee.io@jmeter.apache.org Mon Oct 29 11:12:25 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id E154E180627 for ; Mon, 29 Oct 2018 11:12:24 +0100 (CET) Received: (qmail 9403 invoked by uid 500); 29 Oct 2018 10:12:24 -0000 Mailing-List: contact issues-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@jmeter.apache.org Delivered-To: mailing list issues@jmeter.apache.org Received: (qmail 9390 invoked by uid 99); 29 Oct 2018 10:12:24 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Oct 2018 10:12:23 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 4D7F21A1972 for ; Mon, 29 Oct 2018 10:12:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -10.301 X-Spam-Level: X-Spam-Status: No, score=-10.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id aQjNiq9GLJSG for ; Mon, 29 Oct 2018 10:12:22 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id E57A15F2FE for ; Mon, 29 Oct 2018 10:12:20 +0000 (UTC) Received: from asf-bz1-us-mid.priv.apache.org (nat1-us-mid.apache.org [23.253.172.122]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTPS id 37550E00E0 for ; Mon, 29 Oct 2018 10:12:20 +0000 (UTC) Received: by asf-bz1-us-mid.priv.apache.org (ASF Mail Server at asf-bz1-us-mid.priv.apache.org, from userid 33) id 6BCC7605F1; Mon, 29 Oct 2018 10:12:19 +0000 (UTC) From: bugzilla@apache.org To: issues@jmeter.apache.org Subject: [Bug 62861] New: httpclient.reset_state_on_thread_group_iteration doesn't reuse connection for think time > 1second Date: Mon, 29 Oct 2018 10:12:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: JMeter X-Bugzilla-Component: HTTP X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: abhish3k.v@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: issues@jmeter.apache.org X-Bugzilla-Target-Milestone: JMETER_5.1 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bz.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 https://bz.apache.org/bugzilla/show_bug.cgi?id=3D62861 Bug ID: 62861 Summary: httpclient.reset_state_on_thread_group_iteration doesn't reuse connection for think time > 1second Product: JMeter Version: 5.0 Hardware: PC OS: Linux Status: NEW Severity: major Priority: P2 Component: HTTP Assignee: issues@jmeter.apache.org Reporter: abhish3k.v@gmail.com Target Milestone: JMETER_5.1 Hi, I have a script with 5 http requests which upon executing for 10 iterations with keep-alive enabled for all requests, and following are my observations: 1. httpclient.reset_state_on_thread_group_iteration=3Dtrue a. With 1000ms think time per iteration Expected Output: Connection per iteration Actual Output: A total of 10 connections are created, and each connection w= as iteration dependent. b. No think time throughout the iteration Expected Output: Connection per iteration Actual Output: A total of 10 connections are created, and each connection w= as iteration dependent. 2. httpclient.reset_state_on_thread_group_iteration=3Dfalse a. With 1000ms think time per iteration Expected Output: Connection per thread, shared across multiple iterations Actual Output: Network inspection shows that 5 connections were created in total, with an interval of ~2seconds before the client (JMeter) sent a FIN-= ACK and closed the connection, which isn't the actual "full" reuse that we're looking for with this feature.=20 b. No think time throughout the iteration Expected Output: Connection per thread, shared across multiple iterations Actual Output: Only one connection was created and used across all the iterations. It seems though some underlying TCP configuration is being honoured, which = is causing the client to create a new connection every 2 seconds after ~1+ sec= onds of inactivity due to our think time in the script. Is there a way to work around this and ensure full reuse of connection? I'm not sure whether this = is a JMeter bug in the first place. --=20 You are receiving this mail because: You are the assignee for the bug.=