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 09943200B98 for ; Mon, 3 Oct 2016 23:14:29 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 08124160ADC; Mon, 3 Oct 2016 21:14:29 +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 4F8B6160ACD for ; Mon, 3 Oct 2016 23:14:28 +0200 (CEST) Received: (qmail 46677 invoked by uid 500); 3 Oct 2016 21:14:27 -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 46661 invoked by uid 99); 3 Oct 2016 21:14:27 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2016 21:14:27 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id ACD541A0579 for ; Mon, 3 Oct 2016 21:14:26 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 12ykA8e3Ak3H for ; Mon, 3 Oct 2016 21:14:24 +0000 (UTC) Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 96D425F39A for ; Mon, 3 Oct 2016 21:14:24 +0000 (UTC) Received: by mail-wm0-f54.google.com with SMTP id b201so106259561wmb.0 for ; Mon, 03 Oct 2016 14:14:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=/KgeLnFEzEXjfbqOIDqkUzhOa4EM9w8fe8xHT2E5QN4=; b=Lm+aO4V+U5BAN07UfhzSs9Y0LiGZOwiIuZ0uQv93EA7sLQSs1wpX0dSBdEz7uzn+D1 rtYL2Xi1mz/Lzcpu+AJDS6eMjOpG/+fYkDcUKVpsIjbf6UJeJlsIwzPuqQ7+rbRmL/bx rSNqmm2Lw/Ct0m3W9Rp2+42m13K27uHZFRuHdDxaHYT1brjgPDklW5LM4wdfKPg1+7yn E0cpxsM2/E9wqzVgDkU817/zN/B+a+cDlz1HkCohz7tEj/Y5MJ3e1mXYY0RNFIlxiWL1 Wib38bpmPI+/eZW0G16nNvBKBUO1rFB4FlIr6vGEyguUX0hVr3bCgrlXk///AbBsndmB 2wbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=/KgeLnFEzEXjfbqOIDqkUzhOa4EM9w8fe8xHT2E5QN4=; b=kYiVggrONcKdm6qR+PDK48X8hMh4JmKNQ1v7ZAesPLvNzZeg5N1ygLMwdWfFuFPcjy NsFDK+DDbsTFwoIlNsVm2l488SD6Wb9EYBK1jw0fHJQls2dU8hQtdnHpyZrP/zSG6cKK GlRe81YOFGDTBoKcsQFiV8wpr71X3oCil08bGTAWPXr9Dmv8qEqUuDlRZiDYGRgcqL+l RHp13s4xvgo6Zz/r4Xl3DxpkXFa1Jf3ao73N3y4sDDYqrGfOk9vxz3cw3iArB/Hge90s Hq220cZ2dI7B1HXneapPwYOdUOpIdh/X2lC0TC6mkzHSKBhhTxLR7IuCgxoDCmJKSt6W 48vA== X-Gm-Message-State: AA6/9RlMfbupAN8O/btgM8yhSYFlRrCZF5vYX5mkFuwYuIXeKiySUW6V0+8XoSSX+3kCYhpa0UNRf3jsYKLNrQ== X-Received: by 10.194.20.167 with SMTP id o7mr83408wje.70.1475529263287; Mon, 03 Oct 2016 14:14:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.183.194 with HTTP; Mon, 3 Oct 2016 14:14:03 -0700 (PDT) In-Reply-To: References: From: Karl Pauls Date: Mon, 3 Oct 2016 23:14:03 +0200 Message-ID: Subject: Re: Re-Using an ExecutorService for Felix Resolver calls To: "dev@felix.apache.org" Content-Type: multipart/alternative; boundary=047d7b5d24b69814b9053dfc6d60 archived-at: Mon, 03 Oct 2016 21:14:29 -0000 --047d7b5d24b69814b9053dfc6d60 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I guess I'm not sure if this message is intended for dev@felix or dev@karaf= ? regards, Karl On Mon, Oct 3, 2016 at 9:21 PM, Fabian Lange wrote: > Hi, > what do you guys think about: > https://github.com/apache/karaf/pull/246 > > As noticed by me, and already reported here: > https://issues.apache.org/jira/browse/FELIX-5247 > > The current default behaviour is that every "resolve()" call will create = a > new Executor Pool with number of CPU Cores as size. This is not very > efficient. > In my opinion this is unexpected behaviour by Felix, but fortunately we c= an > use other constructors. > > I left in my PR the default behaviour, but added a new one, which can > re-use a bounded or unbounded ThreadPoolExecutor. I did not use a > FixedThreadPool because i wanted to mimic the current behaviour, which is= : > After the resolve call, these Threads are gone again. > > What do you guys think? Should we change the current "implicit default" t= o > re-use a Thread Pool? > Is a ThreadPoolExecutor with timeout fine to mimic the current behaviour, > or would we want to change this, lets say to have a dedicated thread pool > always available for Felix Resolve calls? (This would then be like > Executors.newFixedThreadPool()) > > I am trying to get this change into karaf 4.0.8. > > Fabian > > > -- > Fabian Lange | Performance Expert > mobil: +49 (0) 160.3673393 > > codecentric AG | Merscheider Stra=C3=9Fe 1 | 42699 Solingen | Deutschland > > Sitz der Gesellschaft: Solingen | HRB 25917| Amtsgericht Wuppertal > Vorstand: Michael Hochg=C3=BCrtel . Mirko Novakovic . Rainer Vehns > Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Klaus J=C3=A4ger . J=C3= =BCrgen Sch=C3=BCtz > --=20 Karl Pauls karlpauls@gmail.com --047d7b5d24b69814b9053dfc6d60--