From issues-return-13584-archive-asf-public=cust-asf.ponee.io@jmeter.apache.org Thu Nov 1 16:10: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 53D10180652 for ; Thu, 1 Nov 2018 16:10:25 +0100 (CET) Received: (qmail 26342 invoked by uid 500); 1 Nov 2018 15:10: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 26331 invoked by uid 99); 1 Nov 2018 15:10: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; Thu, 01 Nov 2018 15:10:24 +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 E33D41A0363 for ; Thu, 1 Nov 2018 15:10: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-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id dPcMqhde_8qu for ; Thu, 1 Nov 2018 15:10:22 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id CE4AB5F41C for ; Thu, 1 Nov 2018 15:10:22 +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 6E2FFE002F for ; Thu, 1 Nov 2018 15:10:22 +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 9EAC060507; Thu, 1 Nov 2018 15:10:21 +0000 (UTC) From: bugzilla@apache.org To: issues@jmeter.apache.org Subject: [Bug 62861] httpclient.reset_state_on_thread_group_iteration doesn't reuse connection for think time > 1second Date: Thu, 01 Nov 2018 15:10:21 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: p.mouawad@ubik-ingenierie.com X-Bugzilla-Status: NEEDINFO 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: Message-ID: In-Reply-To: References: 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 --- Comment #5 from Philippe Mouawad --- (In reply to Abhishek Rao from comment #4) > (In reply to Philippe Mouawad from comment #3) > > (In reply to Abhishek Rao from comment #2) > > > Hi Philippe, > > >=20 > > > The first one is okay.=20 > > >=20 > > > The configuration you mentioned works, but how do I achieve pooling a= nd > > > indefinite reuse rather than reusing for an arbitrary time period? For > > > example: I have scripts acting as clients using pooled connection > > > architectures to talk to web-services internally where this feature w= ill be > > > really useful in simulating.=20 > >=20 > > What if you set: > > httpclient4.idletimeout=3D0 > > httpclient4.validate_after_inactivity=3D1700 > > httpclient4.time_to_live=3DVery high value > >=20 > >=20 > > > Can this be a UI modifiable in future and > > > parametric? > > > Also, how do I achieve hybrid simulations with one thread group using > > > httpclient.reset_state_on_thread_group_iteration=3Dtrue and one that = needs it > > > set to false? > >=20 > > This would be an enhancement request. > > Workaround is to use distributed testing with 1 JVM in first mode and s= econd > > JVM in second mode. >=20 >=20 > I dont think the workaround would apply for my scenario, because there's = two > thread groups in the same script and each requires a different setting. > Distributed mode with different settings across JVMs would mean both the > thread groups are affected, when the scenario calls for just one thread > group to have the setting reflected. I think I'll split it into two tests > for now and run them in parallel. I think the aforementioned will make fo= r a > great enhancement, I also found out that HC4 supports > PooledConnectionManager which solves the problem. What about my first note ? Regarding workaround, just do the following: - use for threads field of each Thread Group :=20 ${__P(threads_TG1,)} ${__P(threads_TG2,)} Then run first jmeter-server with: -Jthreads_TG1=3DX -Jthreads_TG2=3D0 And second with: -Jthreads_TG1=3D0 -Jthreads_TG2=3DY I think it will work --=20 You are receiving this mail because: You are the assignee for the bug.=