Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-5035

Provide mechanism to clear OgnlUtil caches

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.22, 2.6
    • Component/s: Core
    • Environment:

      All

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                JCjA492kH6347Vb10Ja53 James Chaplin
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: