struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Struts2 initial page loading time
Date Fri, 22 Jul 2016 06:17:49 GMT
2016-07-21 17:02 GMT+02:00 Sreekanth S. Nair <sreekanth.nair@egovernments.org>:
> 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<String> packageProviderNames =
> container.getInstanceNames(PackageProvider.class);
> for (String name : packageProviderNames) {
>     PackageProvider provider =
> 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 ?

I assume you have disabled devMode?


Regards
-- 
Ɓukasz
+ 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


Mime
View raw message