Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 142B1200BF5 for ; Sat, 24 Dec 2016 06:23:24 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 12C47160B37; Sat, 24 Dec 2016 05:23:24 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 59CA4160B1F for ; Sat, 24 Dec 2016 06:23:23 +0100 (CET) Received: (qmail 81203 invoked by uid 500); 24 Dec 2016 05:23:22 -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 81192 invoked by uid 99); 24 Dec 2016 05:23:22 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Dec 2016 05:23:22 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id A5FB31812DB for ; Sat, 24 Dec 2016 05:23:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id SPkFzXKpKCHj for ; Sat, 24 Dec 2016 05:23:20 +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 1989F5F46D for ; Sat, 24 Dec 2016 05:23: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 A5DC8E049C for ; Sat, 24 Dec 2016 05:23:18 +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 9991760281; Sat, 24 Dec 2016 05:23:17 +0000 (UTC) From: bugzilla@apache.org To: issues@jmeter.apache.org Subject: [Bug 60492] HttpClient4 implementation couldn't reuse client socket when using KeepAlive Date: Sat, 24 Dec 2016 05:23:17 +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: 3.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: liu_xp2003@sina.com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: issues@jmeter.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status 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 archived-at: Sat, 24 Dec 2016 05:23:24 -0000 https://bz.apache.org/bugzilla/show_bug.cgi?id=3D60492 Liu XP changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW --- Comment #5 from Liu XP --- My web server used tomcat 8 with default setting.=20 I paid attention to this behaviour duration backend web micro service stress testing. I not sure whether it is right for my testing using HttpClient 4, but the behaviour is different with HttpClient 3.1. Thank you for your suggestion. I verified using different value of "httpclient4.time_to_live" again. When I using default value and testing sina web site with one thread, I cou= ld see new socket created in a short time. And previous socket was changed to TIME_WAIT. C:\windows\system32>netstat -na|grep 105:80 TCP 192.168.1.111:36577 140.211.11.105:80 TIME_WAIT TCP 192.168.1.111:36578 140.211.11.105:80 TIME_WAIT TCP 192.168.1.111:36581 140.211.11.105:80 TIME_WAIT TCP 192.168.1.111:36583 140.211.11.105:80 FIN_WAIT_1 TCP 192.168.1.111:36587 140.211.11.105:80 ESTABLISHED After I changed httpclient4.time_to_live value to 10,000, I restarted JMeter and ran same test script again. I could see new socket created not frequent= ly. C:\windows\system32>netstat -na|grep 105:80 TCP 192.168.1.111:36654 140.211.11.105:80 TIME_WAIT TCP 192.168.1.111:36657 140.211.11.105:80 TIME_WAIT TCP 192.168.1.111:36661 140.211.11.105:80 ESTABLISHED C:\windows\system32>netstat -na|grep 105:80 TCP 192.168.1.111:36654 140.211.11.105:80 TIME_WAIT TCP 192.168.1.111:36657 140.211.11.105:80 TIME_WAIT TCP 192.168.1.111:36661 140.211.11.105:80 TIME_WAIT TCP 192.168.1.111:36664 140.211.11.105:80 SYN_SENT To simulate end user behaviour, I believe the default setting is reasonable. Do you have suggestion about value of httpclient4.time_to_live parameter, w= hen running simulate testing between two server with KeepAlive? --=20 You are receiving this mail because: You are the assignee for the bug.=