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 B6EE0200D22 for ; Sat, 7 Oct 2017 08:09:42 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B567D160BDB; Sat, 7 Oct 2017 06:09:42 +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 062C21609E1 for ; Sat, 7 Oct 2017 08:09:41 +0200 (CEST) Received: (qmail 74261 invoked by uid 500); 7 Oct 2017 06:09:40 -0000 Mailing-List: contact dev-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ofbiz.apache.org Delivered-To: mailing list dev@ofbiz.apache.org Received: (qmail 74249 invoked by uid 99); 7 Oct 2017 06:09:40 -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; Sat, 07 Oct 2017 06:09:40 +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 A7FF91A19EF for ; Sat, 7 Oct 2017 06:09:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.401 X-Spam-Level: X-Spam-Status: No, score=-0.401 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_H2=-2.8, 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 tMxMXbtVrT_V for ; Sat, 7 Oct 2017 06:09:36 +0000 (UTC) Received: from mail-oi0-f43.google.com (mail-oi0-f43.google.com [209.85.218.43]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id B4B285FD41 for ; Sat, 7 Oct 2017 06:09:35 +0000 (UTC) Received: by mail-oi0-f43.google.com with SMTP id n82so25432150oig.3 for ; Fri, 06 Oct 2017 23:09:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=xFnCpV5afD4m4+K7NDSwaa3aU28QZW+o8TMCJfuPkAU=; b=oN0gWDwiQyC0GxpmINn8AkpvLg/iz5eHTffM2DFuKDYGlIhZB+g7f8swwjwE0R4Smn 4YA75MNFafnlWF0SU6l5KZVh82aTJR3IEs1MbKbSGt/K38oC7S/8IKmZTwPh+50rkeP/ +UH2K3ZTfd782GopKNfkjqmDZWeUduGdv9NhDwZGaDymWNcpynYxLxJWJhhLJ7gpxEqM jZfRb1kwSD4AGTxSYUsnP7qcTCRNu+/Kcag2bdZIVSAtK9+q7wV8Q6La5sCZQms+GPzJ nuWltmXmhRw9kFv0Ze1/jHH+qEr5aVo82FY/3OLdm492WVI9vrQTzkTbR/qe8NW5SRqH iRfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=xFnCpV5afD4m4+K7NDSwaa3aU28QZW+o8TMCJfuPkAU=; b=AmpiPK8WeTYNgafPA9t6if8qUh1HDl218rlfpSpDXYNSX45jFuwQMK/eot+giCl/xH g7JhNV4+sYeZ+NZOyFO3YaPuXuP/PUN9UHdFOB+pA2PMVaNoCUO8UAeVLW5jQPd/9aeM zOh5ZMC3VCI6d0vXC0MPJNRpdjLOoojrMi8xHJxGuAjdPnwgCDJ8udO0jSAqy87alHm8 BlDMNf/n5Ue3X0i4ShEsgkHHCtW5iJkGG+iEe0qJGD3wlAokRasVxqmTs4t464n5P0QR yugQBpReXEFcGGQMVxQXzEOruecno/1HTBV3VyDBp4xodflDPaCTu+VWdsGVlEKMWwNH YIQQ== X-Gm-Message-State: AMCzsaUYahr7abV/BjjjpbTV5eofA0Ksl/b1HBXcpfChpErsZlkFmahK rdGxYNv+2KeB4ODevTqbR3kuX+4IPeED37Ckymc= X-Google-Smtp-Source: AOwi7QAmNQ7qh1DFaQ/sWt5MIOkfobBsos1ad2PUZRhucEZq/daPdy7uay74cJnM6GtO+4sjl9jWIuxPJBDFAV9E/iI= X-Received: by 10.202.98.135 with SMTP id w129mr2154150oib.7.1507356574907; Fri, 06 Oct 2017 23:09:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.0.6 with HTTP; Fri, 6 Oct 2017 23:09:33 -0700 (PDT) Received: by 10.74.0.6 with HTTP; Fri, 6 Oct 2017 23:09:33 -0700 (PDT) In-Reply-To: References: From: Taher Alkhateeb Date: Sat, 7 Oct 2017 09:09:33 +0300 Message-ID: Subject: Re: Components loading twice while starting OFBiz To: OFBIZ Development Mailing List Content-Type: multipart/alternative; boundary="001a113d31ac328536055aeecd70" archived-at: Sat, 07 Oct 2017 06:09:42 -0000 --001a113d31ac328536055aeecd70 Content-Type: text/plain; charset="UTF-8" Hello Yash Great, we'll continue this discussion in OFBIZ-9827. Thank you for your kind words. On Oct 7, 2017 7:25 AM, "Yash Sharma" wrote: Hello Taher, Thanks for your quick response, I am a big fan of your work for that. Yes this behaviour exists in 14.12 also, I have created JIRA ticket for that OFBIZ-9827 . Thanks & Regards, -- *Pradhan Yash Sharma* *HotWax Systems* | www.hotwaxsystems.com On Fri, Oct 6, 2017 at 10:57 PM, Taher Alkhateeb wrote: > Hello Yash, > > I've made a full refactoring exercise of the CatalinaContainer a while > ago, however I don't think that work altered the behavior. Perhaps > this is an existing bug (not sure). > > Either way, I'm familiar with that code and if you'd like to open a > JIRA I can try to help out. I never liked the whole logic for loading > webapps, so this might be a good time to fix the bug and improve the > logic in this class. > > On Fri, Oct 6, 2017 at 3:57 PM, Yash Sharma > wrote: > > Hi Dev, > > > > I was looking at some components loading twice while starting OFBiz. > > While digging it deep down I found CatalinaContainer calls loadWebapps > > which creates a future task which depends on numbers of System cores. > > If web app mounts are not available it removes all and adds again all > Apps > > Mounts which submits all task to future. Which creates a condition where > > > > 1) if 2 cores are available task some task is added to the future pool > > twice. > > 2) if 4 cores are available only task one task is added to the future > pool > > twice. > > > > (These values totally depend on system speed and number of cores > available > > but the point is slow system will submit few task more than once and > faster > > vice versa) > > > > I am looking around this piece of code and trying to resolve this problem > > if someone else has gone through this please let me know. > > > > > > Thanks & Regards, > > -- > > *Pradhan Yash Sharma* > > *HotWax Systems* | www.hotwaxsystems.com > --001a113d31ac328536055aeecd70--