[ 
https://issues.apache.org/jira/browse/MYFACES-2780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12885801#action_12885801
 ] 

Michael Concini commented on MYFACES-2780:
------------------------------------------

Startup footprint can be an issue in production in many cases, especially when 
you take into considerations virtual machine environments where the memory 
allocated may be limited.  The reason in particular that this lazy loading 
would be effective in a production environment however is due to the previous 
behavior loading all application resources into memory that are described by 
large widgets libraries even if an application might only use a small subset of 
these.  It also is consistent with the behavior of the RI as they appear to be 
doing lazy loading after taking comparative heapdumps and analyzing classes 
loaded. 

Perhaps we should allow this to be configurable whether to load application 
resources lazy or aggressive?  

> MyFaces performance improvements for production 
> ------------------------------------------------
>
>                 Key: MYFACES-2780
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2780
>             Project: MyFaces Core
>          Issue Type: Improvement
>          Components: General
>    Affects Versions: 2.0.0
>            Reporter: Michael Concini
>            Assignee: Michael Concini
>            Priority: Minor
>             Fix For: 2.0.1
>
>
> Several fixes to enhance startup memory footprint and runtime performance 
> taking advantage of ProjectStage.
> -lazy loading of validators, converters, behaviors,components - can have a 
> substantial impact on startup footprint in applications with multiple or very 
> large widget libraries.
> Turn off some updating of resources for ProjectStage=Production by default 
> (can always override using javax.faces.FACELETS_REFRESH_PERIOD)
> -change default facelets refresh interval to -1 when projectStage is 
> production.  This by itself gains a 60% improvement in throughput.
> -disable reloading of web.xml and faces-config after the first load.  
> -store a map to cache Class to listenerFor and resourceDependency annotations 
> when in production.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to