You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Blake Sullivan (JIRA)" <de...@myfaces.apache.org> on 2012/06/12 05:50:44 UTC

[jira] [Created] (TRINIDAD-2273) Allow scheme for application to control UIViewRoot caching logic

Blake Sullivan created TRINIDAD-2273:
----------------------------------------

             Summary: Allow scheme for application to control UIViewRoot caching logic
                 Key: TRINIDAD-2273
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2273
             Project: MyFaces Trinidad
          Issue Type: Bug
    Affects Versions: 2.0.1-core,  1.2.12-core
         Environment: all
            Reporter: Blake Sullivan


When UIViewRoot caching is enabled, the cached UIViewRoots can consume considerable memory across all of the users.  The proposal is to extend the allowed values of the Servlet Initialization parameter:
    <param-name>org.apache.myfaces.trinidad.CACHE_VIEW_ROOT</param-name>

to support, in addition to the current "true", and "false" values, the values of:
"strong" UIViewRoot caching is enabled and always uses strong references to the cached UIViewRoot
"soft" UIViewRoot caching is enabled and always uses soft references to the cached UIViewRoot, allowing the cached UIViewRoots to be purged if under memory pressure
<classname> The fully qualified classname of an implementation of org.apache.myfaces.trinidad.util.ref.PseudoReferenceFactory returning any desired PseudoReference implementation.

In addition, the value of "true" now uses the value of a PseudoReferenceFactory implementation registered under the service name "org.apache.myfaces.trinidad.CACHE_VIEW_ROOT" if one is registered, otherwise, it uses a strong reference, to duplicate the current functionality

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (TRINIDAD-2273) Allow scheme for application to control UIViewRoot caching logic

Posted by "Blake Sullivan (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TRINIDAD-2273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Blake Sullivan resolved TRINIDAD-2273.
--------------------------------------

    Resolution: Fixed
    
> Allow scheme for application to control UIViewRoot caching logic
> ----------------------------------------------------------------
>
>                 Key: TRINIDAD-2273
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2273
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>    Affects Versions:  1.2.12-core, 2.0.1-core
>         Environment: all
>            Reporter: Blake Sullivan
>            Assignee: Blake Sullivan
>             Fix For: 2.0.0-core
>
>         Attachments: trin_2273_2_1.patch, trin_2273_2_1_part_deux.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> When UIViewRoot caching is enabled, the cached UIViewRoots can consume considerable memory across all of the users.  The proposal is to extend the allowed values of the Servlet Initialization parameter:
>     <param-name>org.apache.myfaces.trinidad.CACHE_VIEW_ROOT</param-name>
> to support, in addition to the current "true", and "false" values, the values of:
> "strong" UIViewRoot caching is enabled and always uses strong references to the cached UIViewRoot
> "soft" UIViewRoot caching is enabled and always uses soft references to the cached UIViewRoot, allowing the cached UIViewRoots to be purged if under memory pressure
> <classname> The fully qualified classname of an implementation of org.apache.myfaces.trinidad.util.ref.PseudoReferenceFactory returning any desired PseudoReference implementation.
> In addition, the value of "true" now uses the value of a PseudoReferenceFactory implementation registered under the service name "org.apache.myfaces.trinidad.CACHE_VIEW_ROOT" if one is registered, otherwise, it uses a strong reference, to duplicate the current functionality

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Reopened] (TRINIDAD-2273) Allow scheme for application to control UIViewRoot caching logic

Posted by "Blake Sullivan (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TRINIDAD-2273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Blake Sullivan reopened TRINIDAD-2273:
--------------------------------------

    
> Allow scheme for application to control UIViewRoot caching logic
> ----------------------------------------------------------------
>
>                 Key: TRINIDAD-2273
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2273
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>    Affects Versions:  1.2.12-core, 2.0.1-core
>         Environment: all
>            Reporter: Blake Sullivan
>            Assignee: Blake Sullivan
>             Fix For: 2.0.0-core
>
>         Attachments: trin_2273_2_1.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> When UIViewRoot caching is enabled, the cached UIViewRoots can consume considerable memory across all of the users.  The proposal is to extend the allowed values of the Servlet Initialization parameter:
>     <param-name>org.apache.myfaces.trinidad.CACHE_VIEW_ROOT</param-name>
> to support, in addition to the current "true", and "false" values, the values of:
> "strong" UIViewRoot caching is enabled and always uses strong references to the cached UIViewRoot
> "soft" UIViewRoot caching is enabled and always uses soft references to the cached UIViewRoot, allowing the cached UIViewRoots to be purged if under memory pressure
> <classname> The fully qualified classname of an implementation of org.apache.myfaces.trinidad.util.ref.PseudoReferenceFactory returning any desired PseudoReference implementation.
> In addition, the value of "true" now uses the value of a PseudoReferenceFactory implementation registered under the service name "org.apache.myfaces.trinidad.CACHE_VIEW_ROOT" if one is registered, otherwise, it uses a strong reference, to duplicate the current functionality

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (TRINIDAD-2273) Allow scheme for application to control UIViewRoot caching logic

Posted by "Blake Sullivan (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TRINIDAD-2273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Blake Sullivan resolved TRINIDAD-2273.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0-core
    
> Allow scheme for application to control UIViewRoot caching logic
> ----------------------------------------------------------------
>
>                 Key: TRINIDAD-2273
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2273
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>    Affects Versions:  1.2.12-core, 2.0.1-core
>         Environment: all
>            Reporter: Blake Sullivan
>            Assignee: Blake Sullivan
>             Fix For: 2.0.0-core
>
>         Attachments: trin_2273_2_1.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> When UIViewRoot caching is enabled, the cached UIViewRoots can consume considerable memory across all of the users.  The proposal is to extend the allowed values of the Servlet Initialization parameter:
>     <param-name>org.apache.myfaces.trinidad.CACHE_VIEW_ROOT</param-name>
> to support, in addition to the current "true", and "false" values, the values of:
> "strong" UIViewRoot caching is enabled and always uses strong references to the cached UIViewRoot
> "soft" UIViewRoot caching is enabled and always uses soft references to the cached UIViewRoot, allowing the cached UIViewRoots to be purged if under memory pressure
> <classname> The fully qualified classname of an implementation of org.apache.myfaces.trinidad.util.ref.PseudoReferenceFactory returning any desired PseudoReference implementation.
> In addition, the value of "true" now uses the value of a PseudoReferenceFactory implementation registered under the service name "org.apache.myfaces.trinidad.CACHE_VIEW_ROOT" if one is registered, otherwise, it uses a strong reference, to duplicate the current functionality

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TRINIDAD-2273) Allow scheme for application to control UIViewRoot caching logic

Posted by "Blake Sullivan (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-2273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13402671#comment-13402671 ] 

Blake Sullivan commented on TRINIDAD-2273:
------------------------------------------

Reopened because this caused a regression when view root caching was disabled
                
> Allow scheme for application to control UIViewRoot caching logic
> ----------------------------------------------------------------
>
>                 Key: TRINIDAD-2273
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2273
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>    Affects Versions:  1.2.12-core, 2.0.1-core
>         Environment: all
>            Reporter: Blake Sullivan
>            Assignee: Blake Sullivan
>             Fix For: 2.0.0-core
>
>         Attachments: trin_2273_2_1.patch
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> When UIViewRoot caching is enabled, the cached UIViewRoots can consume considerable memory across all of the users.  The proposal is to extend the allowed values of the Servlet Initialization parameter:
>     <param-name>org.apache.myfaces.trinidad.CACHE_VIEW_ROOT</param-name>
> to support, in addition to the current "true", and "false" values, the values of:
> "strong" UIViewRoot caching is enabled and always uses strong references to the cached UIViewRoot
> "soft" UIViewRoot caching is enabled and always uses soft references to the cached UIViewRoot, allowing the cached UIViewRoots to be purged if under memory pressure
> <classname> The fully qualified classname of an implementation of org.apache.myfaces.trinidad.util.ref.PseudoReferenceFactory returning any desired PseudoReference implementation.
> In addition, the value of "true" now uses the value of a PseudoReferenceFactory implementation registered under the service name "org.apache.myfaces.trinidad.CACHE_VIEW_ROOT" if one is registered, otherwise, it uses a strong reference, to duplicate the current functionality

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira