From user-return-217793-apmail-struts-user-archive=struts.apache.org@struts.apache.org Thu Jul 21 15:12:07 2016 Return-Path: X-Original-To: apmail-struts-user-archive@www.apache.org Delivered-To: apmail-struts-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0C8C2197E8 for ; Thu, 21 Jul 2016 15:12:07 +0000 (UTC) Received: (qmail 22501 invoked by uid 500); 21 Jul 2016 15:12:05 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 22464 invoked by uid 500); 21 Jul 2016 15:12:05 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 22451 invoked by uid 99); 21 Jul 2016 15:12:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jul 2016 15:12:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id E7E93C0C8F for ; Thu, 21 Jul 2016 15:12:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.979 X-Spam-Level: * X-Spam-Status: No, score=1.979 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=egovernments-org.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id n3Hn6VlL3qCK for ; Thu, 21 Jul 2016 15:12:01 +0000 (UTC) Received: from mail-yw0-f170.google.com (mail-yw0-f170.google.com [209.85.161.170]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 87EB25FD34 for ; Thu, 21 Jul 2016 15:11:56 +0000 (UTC) Received: by mail-yw0-f170.google.com with SMTP id j12so70143997ywb.2 for ; Thu, 21 Jul 2016 08:11:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=egovernments-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=deafLPFbIbN83vv1ZBv+BTYgkw+ltvu1MPcQ8aORxVE=; b=v4yv44u555Wf9M273xOFPMeCrHiXTBSWpU1YJZGwdJGUxiDtDZlVDaYOwlUMSCQYo9 xbp5Ss3F+r5s97Dc0dJw0iZq+qr27oJTUtNjkmYgqeoSX4Mobya1rPq7NMb2DpGoajtr 3e4JBU2AMV9V6weOCxyHvE1qqh0pgPZFm3j7wUBsOAKjUHSpQLmKAChN3pV8YzNdX1LI 0Rq6wWDWYFMpHPSJamivVJ8A46wJST/Z0E4bbZ4yX4pv+wrEmCnH5Lesa5IFf2sPdyu2 BD4gOcT9CFoBgX0y0rPuGqQ0w9aBD3/SDdXqd2sRI+yW3cKMk5nzSlrujHT+ZcPTTCpf CCCQ== 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=deafLPFbIbN83vv1ZBv+BTYgkw+ltvu1MPcQ8aORxVE=; b=YpvUrthNecFtXAODBJil7mTAkj/YUgtaGE8saR9xJ58k6rNTfxihMhvorpzbyuZvlP RHPgzfheuRdEGnJYanuMdVNnpzMGbrc+KOvZVGj3pWwx7x9bDhMxncoD9qo0hABABq+/ nA8Pv7YE1PhPxsl+MY8SHY6Xo4wSA9/kqe6jggVLUYWlKIotBtmBdwsgEpOvqri5cy0+ 8DKyA7bxHiQOkWqyRufgsAoLkI7BzMs/5GTd9p7GMlR3k8szyovgzULtTWHmNrEOPBVN CERMeT5wX9gXdITfIVSTuL1dYLHO+i2o7AV/AQIO+maDcrIKuPd4a6qjJ+30kpH0NIM2 ezQg== X-Gm-Message-State: ALyK8tLfik4pOtV2Z6TlZ721nJrIQ2oY/7BPaZY0aPHd73RzsRX2YvoKOrGoIf2Dmqz21Ioe+6gI3qeWancSMw== X-Received: by 10.129.94.10 with SMTP id s10mr34815933ywb.307.1469113915194; Thu, 21 Jul 2016 08:11:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.199.9 with HTTP; Thu, 21 Jul 2016 08:11:54 -0700 (PDT) In-Reply-To: <1E0B5053-B217-4445-949D-B6D47DABBC22@digitalantiquity.org> References: <1E0B5053-B217-4445-949D-B6D47DABBC22@digitalantiquity.org> From: "Sreekanth S. Nair" Date: Thu, 21 Jul 2016 20:41:54 +0530 Message-ID: Subject: Re: Struts2 initial page loading time To: Struts Users Mailing List Content-Type: multipart/alternative; boundary=001a114919cc0cfddd053826bdef --001a114919cc0cfddd053826bdef Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Adam, With ref to my previous reply i hope this is nothing to do with spring, since this delay is happening after struts spring initialization phase. And yes we have component scanning enabled for spring which we are limiting to our own package, similar to the one you have mentioned. On Thu, Jul 21, 2016 at 8:35 PM, Adam Brin wrote: > In your spring configuration, what packages are you scanning? It could b= e > that you=E2=80=99re not limiting things to just your package tree. For ex= ample, in > our spring @Configuration class, we have the following: > > @ComponentScan(basePackages =3D { "org.tdar" }, > excludeFilters =3D { > @Filter(type =3D FilterType.ASSIGNABLE_TYPE, > value =3D { > SimpleAppConfiguration.class > }) > }) > > -- > _________________________________________________________ > Adam Brin > Director of Technology, Digital Antiquity > 480.965.1278 > > > On Jul 21, 2016, at 8:02 AM, Sreekanth S. Nair < > sreekanth.nair@egovernments.org> wrote: > > > > Hi Lukasz, > > I have debugged through the code (version : 2.3.24.1) > and > > found the most time taking (marked in *red*) process ie at > > DefaultConfiguration#reloadContainer class when loading provider called > > convention.PackageProvider > > > > // Then process any package providers from the plugins > > Set packageProviderNames =3D > > container.getInstanceNames(PackageProvider.class); > > for (String name : packageProviderNames) { > > PackageProvider provider =3D > > container.getInstance(PackageProvider.class, name); > > provider.init(this); > > *provider.loadPackages(); //Taking long time here* > > packageProviders.add(provider); > > } > > > > > > for the first time page loads. The same issue is there in 2.5.2 as well= . > Is > > it may be a default behavior to take time ? > > > > > > > > > > > > > > > > > > On Thu, Jul 21, 2016 at 12:10 PM, Sreekanth S. Nair < > > sreekanth.nair@egovernments.org> wrote: > > > >> Sure Lukasz... > >> > >> > >> On Thu, Jul 21, 2016 at 11:57 AM, Lukasz Lenart < > lukaszlenart@apache.org> > >> wrote: > >> > >>> 2016-07-21 8:22 GMT+02:00 Sreekanth S. Nair < > >>> sreekanth.nair@egovernments.org>: > >>>> May be... We are using strust2-spring-plugin. I'm not pretty sure > about > >>>> this plugin internal, need to investigate on this where its spending > >>> time. > >>> > >>> This plugin replaces the Struts ObjectFactory with a Spring > >>> ObjectFactory which simply delegates object instantiating to the > >>> Spring, it would be good if you could share results of your > >>> investigation. > >>> > >>> > >>> Regards > >>> -- > >>> =C5=81ukasz > >>> + 48 606 323 122 http://www.lenart.org.pl/ > >>> > >>> --------------------------------------------------------------------- > >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > >>> For additional commands, e-mail: user-help@struts.apache.org > >>> > >>> > >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > --001a114919cc0cfddd053826bdef--