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 F34A3107C2 for ; Sat, 15 Feb 2014 15:08:32 +0000 (UTC) Received: (qmail 21695 invoked by uid 500); 15 Feb 2014 15:08:32 -0000 Delivered-To: apmail-jmeter-dev-archive@jmeter.apache.org Received: (qmail 21671 invoked by uid 500); 15 Feb 2014 15:08:31 -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 Delivered-To: moderator for dev@jmeter.apache.org Received: (qmail 38056 invoked by uid 99); 15 Feb 2014 09:42:03 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Message-ID: <1392457292.20446.8.camel@ubuntu> Subject: Re: HttpClient 4.2.6 : ManagedClientConnectionImpl way of checking stale connection and Performances From: Oleg Kalnichevski To: HttpClient User Discussion Cc: "dev@jmeter.apache.org" Date: Sat, 15 Feb 2014 10:41:32 +0100 In-Reply-To: References: <1386586783.24937.1.camel@ubuntu> <1386751854.8917.6.camel@ubuntu> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.8.4-0ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Fri, 2014-02-14 at 15:42 +0100, Philippe Mouawad wrote: > 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 > Philippe I am not sure I remember the context. Is it about turning off stale connection checking? Oleg > > 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 > > > > > >