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 9D980200B8D for ; Fri, 23 Sep 2016 20:38:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9C3F3160AD0; Fri, 23 Sep 2016 18:38:23 +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 D8F38160ADA for ; Fri, 23 Sep 2016 20:38:22 +0200 (CEST) Received: (qmail 82136 invoked by uid 500); 23 Sep 2016 18:38:21 -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 82100 invoked by uid 99); 23 Sep 2016 18:38:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Sep 2016 18:38:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id AC20D2C0B05 for ; Fri, 23 Sep 2016 18:38:21 +0000 (UTC) Date: Fri, 23 Sep 2016 18:38:21 +0000 (UTC) From: "Karl Pauls (JIRA)" To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FELIX-5363) new URL(string) suffers under concurrency MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 23 Sep 2016 18:38:23 -0000 [ https://issues.apache.org/jira/browse/FELIX-5363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15517219#comment-15517219 ] Karl Pauls commented on FELIX-5363: ----------------------------------- Hm, maybe I'm reading this wrong but it looks to me like it isn't actually URLHandlersStreamHandlerProxy.getStreamHandlerService() but rather URLHandlers.getFrameworkFromContext() which is the culprit (time v.s. own time). That would make sense to me as it is potentially a expensive call (depending on what you are doing, you might be able to disable the url handlers with felix.service.urlhandlers=false but that likely has to many sideeffects). However, you shouldn't necessarily run into the expensive part of it - are you running more than one framework at the same time? . > new URL(string) suffers under concurrency > ----------------------------------------- > > Key: FELIX-5363 > URL: https://issues.apache.org/jira/browse/FELIX-5363 > Project: Felix > Issue Type: Bug > Components: Framework > Affects Versions: framework-5.4.0 > Reporter: Rob Ryan > Attachments: Merged-callees.csv > > > Under moderate concurrency (25threads) and frequent use of new java.net.URL(string) a bottleneck was seen with yourkit. In one test involving HTML page generation new URL(url) was seen to take 20% of time (via yourkit). > This was tracked to org.apache.felix.framework.URLHandlersStreamHandlerProxy.getStreamHandlerService() URLHandlersStreamHandlerProxy.java which accounted for 99% of the time used by new URL(url). -- This message was sent by Atlassian JIRA (v6.3.4#6332)