Return-Path: X-Original-To: apmail-jmeter-dev-archive@minotaur.apache.org Delivered-To: apmail-jmeter-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6FDFD10867 for ; Fri, 14 Feb 2014 14:43:13 +0000 (UTC) Received: (qmail 16775 invoked by uid 500); 14 Feb 2014 14:43:13 -0000 Delivered-To: apmail-jmeter-dev-archive@jmeter.apache.org Received: (qmail 16642 invoked by uid 500); 14 Feb 2014 14:43:02 -0000 Mailing-List: contact dev-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jmeter.apache.org Delivered-To: mailing list dev@jmeter.apache.org Received: (qmail 16605 invoked by uid 99); 14 Feb 2014 14:42:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Feb 2014 14:42:59 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of philippe.mouawad@gmail.com designates 209.85.223.174 as permitted sender) Received: from [209.85.223.174] (HELO mail-ie0-f174.google.com) (209.85.223.174) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Feb 2014 14:42:52 +0000 Received: by mail-ie0-f174.google.com with SMTP id tp5so7400355ieb.33 for ; Fri, 14 Feb 2014 06:42:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=EJPV7ilV2AaZ/2cEjtpvsYIawXRzge0TBwjz6xzNDKU=; b=qin/XWZfaQKjRCVgEPmdHzTsFjGct5JAg0NeicU7gayc9v2W1qro5LHY5a80cLLFpy axUmy8GFF70gs5BIOBPVqKhC2Nj1JMAXz4KDpsK191+XteOe7B/HSSqa/c/cAsMRept2 wCYpN0Io+SPn1fA3nMYEJHnooe6tN8EZm0l41d70m5KukBzSx0oCheK2IR1TLBwB/hL6 BArSngAF/6deULOvWbQ66CE1zrZxERXcHExVfnedotV+BMS7hHya/jpL1AfghGEB0Q3a jqnnLAL6R57aS154GIHHB/E7a68q5CM0O/VH3EeNnjDvLMZ7niKc/XyIHu0edYpxh3HG D1bA== MIME-Version: 1.0 X-Received: by 10.43.69.83 with SMTP id yb19mr6026846icb.45.1392388951962; Fri, 14 Feb 2014 06:42:31 -0800 (PST) Received: by 10.43.64.212 with HTTP; Fri, 14 Feb 2014 06:42:31 -0800 (PST) In-Reply-To: <1386751854.8917.6.camel@ubuntu> References: <1386586783.24937.1.camel@ubuntu> <1386751854.8917.6.camel@ubuntu> Date: Fri, 14 Feb 2014 15:42:31 +0100 Message-ID: Subject: Re: HttpClient 4.2.6 : ManagedClientConnectionImpl way of checking stale connection and Performances From: Philippe Mouawad To: HttpClient User Discussion Cc: "dev@jmeter.apache.org" Content-Type: multipart/alternative; boundary=bcaec51b1ea3defb5004f25ed077 X-Virus-Checked: Checked by ClamAV on apache.org --bcaec51b1ea3defb5004f25ed077 Content-Type: text/plain; charset=ISO-8859-1 Hello Oleg, We set this configuration in JMeter 2.11, we got recently this bug report related to this change: https://issues.apache.org/bugzilla/show_bug.cgi?id=56119 This issue seems to be faced by another person: https://twitter.com/cfwhisperer/status/428278488349417472 Regards Philippe On Wed, Dec 11, 2013 at 9:50 AM, Oleg Kalnichevski wrote: > On Tue, 2013-12-10 at 21:38 +0100, Philippe Mouawad wrote: > > Hello Oleg, > > Thanks for answer. > > Wouldn't it be interesting to add some threshold or delay between each > > check instead of doing check on each request ? > > > > Regards > > Philippe > > > > Philippe > > I am not sure it is worth the trouble. In most circumstances the stale > connection check should be turned off anyway. > > I think it just needs to be better documented. > > Oleg > > > > > On Mon, Dec 9, 2013 at 11:59 AM, Oleg Kalnichevski > wrote: > > > > > On Sun, 2013-12-08 at 21:32 +0100, Philippe Mouawad wrote: > > > > Hello, > > > > Profiling JMeter, I noticed an important number of > SocketTimeoutException > > > > being triggered without any impact on response status. > > > > > > > > I investigated it a bit deeper and find out it affected only > HttpClient > > > > implementations. > > > > Looking a bit deeper, it is due to connection stale check which is > > > enabled > > > > by default. > > > > This check sets a timeout to 1ms , see : > > > > - org.apache.http.impl.io.SocketInputBuffer#isDataAvailable > > > > - org.apache.http.impl.AbstractHttpClientConnection#isStale > > > > > > > > > > > > Is this the only and best way to check for stale connection ? > > > > > > > > > > > > Regards > > > > Philippe > > > > > > Philippe > > > > > > I personally do not know of a different (better) way of finding out > > > whether or not a blocking connection is still valid. > > > > > > Oleg > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org > > > For additional commands, e-mail: httpclient-users-help@hc.apache.org > > > > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org > For additional commands, e-mail: httpclient-users-help@hc.apache.org > > -- Cordialement. Philippe Mouawad. --bcaec51b1ea3defb5004f25ed077--