Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 13476 invoked from network); 11 May 2010 05:27:54 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 May 2010 05:27:54 -0000 Received: (qmail 10838 invoked by uid 500); 11 May 2010 05:27:54 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 10700 invoked by uid 500); 11 May 2010 05:27:54 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 10367 invoked by uid 99); 11 May 2010 05:27:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 May 2010 05:27:53 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 May 2010 05:27:51 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4B5RUOA002694 for ; Tue, 11 May 2010 05:27:30 GMT Message-ID: <26070604.15561273555650207.JavaMail.jira@thor> Date: Tue, 11 May 2010 01:27:30 -0400 (EDT) From: "Jed Wesley-Smith (JIRA)" To: dev@felix.apache.org Subject: [jira] Updated: (FELIX-2332) Lots of contention on ExtensionManager.openConnection(URL) In-Reply-To: <31137117.15231273555349293.JavaMail.jira@thor> 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/FELIX-2332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jed Wesley-Smith updated FELIX-2332: ------------------------------------ Attachment: ExtensionManager.java.patch attached is a simple patch that reduces the scope of the sync block to the iteration. > Lots of contention on ExtensionManager.openConnection(URL) > ---------------------------------------------------------- > > Key: FELIX-2332 > URL: https://issues.apache.org/jira/browse/FELIX-2332 > Project: Felix > Issue Type: Bug > Components: Framework > Reporter: Jed Wesley-Smith > Attachments: ExtensionManager.java.patch > > > This method is synchronized, apparently to protect is the iteration through the m_extensions list. We have seen significant blocking in our applications as this lock encompasses the call to URL.openConnection as well. > As this list is rarely changed, a copy-on-write structure would be more appropriate, but at the very least the, only holding the lock during the iteration would be far preferable. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.