Return-Path: Delivered-To: apmail-hc-dev-archive@www.apache.org Received: (qmail 73908 invoked from network); 10 Sep 2009 08:04:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Sep 2009 08:04:22 -0000 Received: (qmail 50487 invoked by uid 500); 10 Sep 2009 08:04:22 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 50450 invoked by uid 500); 10 Sep 2009 08:04:22 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 50440 invoked by uid 99); 10 Sep 2009 08:04:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Sep 2009 08:04:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Sep 2009 08:04:18 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 86C70234C004 for ; Thu, 10 Sep 2009 01:03:57 -0700 (PDT) Message-ID: <1695489779.1252569837547.JavaMail.jira@brutus> Date: Thu, 10 Sep 2009 01:03:57 -0700 (PDT) From: "Oleg Kalnichevski (JIRA)" To: dev@hc.apache.org Subject: [jira] Commented: (HTTPCLIENT-814) MultiThreadedHttpConnectionManager deadlocks when reusing socket connections In-Reply-To: <1846388584.1231513559598.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HTTPCLIENT-814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12753488#action_12753488 ] Oleg Kalnichevski commented on HTTPCLIENT-814: ---------------------------------------------- There has been only one confirmed case of HttpClient leaking connections [1]. The bug affects tunneled (proxied) SSL connections only. This bug has been fixed in the 3.x branch [2], but the fix has never been released with an official release. You can get the latest code snapshot from the SVN repository, build it and see if that fixes the issue for you. Please note there will be NO new releases off the 3.x branch. Users are strongly advised to upgrade to 4.0 Oleg [1] https://issues.apache.org/jira/browse/HTTPCLIENT-848 [2] http://svn.apache.org/repos/asf/httpcomponents/oac.hc3x/trunk/ > MultiThreadedHttpConnectionManager deadlocks when reusing socket connections > ---------------------------------------------------------------------------- > > Key: HTTPCLIENT-814 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-814 > Project: HttpComponents HttpClient > Issue Type: Bug > Components: HttpClient > Affects Versions: 3.1 Final > Environment: Tomcat 6.18 running on a Windows 2003 server > Reporter: Will Franco > Fix For: Future > > > During our Load Testing we encountered that the MultiThreadedHttpConnectionManager deadlocks when reusing socket connections. These socket connections remain in the pool in a CLOSE_WAIT state, and the pool is unable to reuse them or create new ones because the maximum number of connection has already been reached, thus deadlocking. > Let me explain briefly how this library is being used and the temporary work around that we are using. However, the correct solution would be to use the connection pool. > Usage: > 1) The HttPClient is being used to handle connections to another server from our Web Application. So far, for every request our Web App processes we have to make at least one request to another server using the HttpClient. > 2) Our load tester, loads our web app with thousands of requests within the first 30 seconds, and maintains such high volume of requests for at least 24 hours > Work Around: > The current work around we implemented is to have different HttpClient instances per request, and we shutdown the Connection Manager once we complete the transaction with the other server. > The next work around we will be trying is to call the closeIdleConnections, this solution will remove the connections that can potentially deadlock the connection manager allowing it to allocate new ones. > Please email me to willfranco@gmail.com if you need any further information regarding this issue. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org