struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-5035) Provide mechanism to clear OgnlUtil caches
Date Sat, 15 Jun 2019 15:48:00 GMT

    [ https://issues.apache.org/jira/browse/WW-5035?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16864744#comment-16864744
] 

ASF GitHub Bot commented on WW-5035:
------------------------------------

JCgH4164838Gh792C124B5 commented on pull request #361: Proposed WW-5035 enhancement:
URL: https://github.com/apache/struts/pull/361
 
 
   Proposed WW-5035 enhancement:
   - Provide cache clearing methods for OgnlUtil (expression cache, BeanInfo
   cache).
   - Provide methods to check the cache sizes (entry number for expression
   cache, BeanInfo cache).
   - Provide static method to clear the OgnlRuntime cache (convenience
   method).
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Provide mechanism to clear OgnlUtil caches
> ------------------------------------------
>
>                 Key: WW-5035
>                 URL: https://issues.apache.org/jira/browse/WW-5035
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Core
>         Environment: All
>            Reporter: James Chaplin
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 2.5.21
>
>
> Hello Apache Struts Team.
> This Jira proposes to provide some cache-clearing methods for the OgnlUtil class, as
well as methods to check the current cache element count.
> These methods will allow applications to clear the OgnlUtil expression cache and BeanInfo
cache when necessary (using application-specific usage profile).
> Currently the only OgnlUtil cache control available to applications is to enable/disable
the OgnlUtil expressionCache ({{struts.ognl.enableExpressionCache flag}}). 
> Using the new methods applications that have resource (memory) leak issues with the caches
may be able to use the caches to gain some performance benefits, while periodically clearing
them to recover memory resources.  Application developers can determine how frequently (e.g.
hourly, daily) such cache clearing is needed.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message