Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-69733

Limit the number of elements in RequestCachingGroupManager cache

    XMLWordPrintable

Details

    • 15
    • 16
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      Summary

      Class RequestCachingGroupManager may accumulate too many objects in RequestCache during processing

      See more details JRASERVER-66555

      Suggested Solution

      Introduce the limit to number of objects stored by http request in it's cache. The default limit will be 1000

      Note about the fix

      The fix is not enabled by default. It will be applied only when setting the JVM argument:

      -Djira.cache.request.bounded.enabled=true
      

      Jira node restart is required.
      To verify that the option was enabled correctly see if the Jira application log contains message:

      2019-03-19 15:06:16,969 http-nio-8080-exec-1 INFO anonymous 906x1x1 - 0:0:0:0:0:0:0:1 / [c.a.j.cache.request.RequestCacheConfiguration] System property jira.cache.request.bounded.enabled is enabled and your requests scope caches are bounded with maxsize=1000
      

      The default limit is 1000, but can be modified by setting JVM argument, e.g.:

      -Djira.cache.request.bounded.size=2000
      

      The limit won't be applied if jira.cache.request.bounded.enabled is not set.

      Attachments

        Issue Links

          Activity

            People

              tzwierzchowski Tomasz Zwierzchowski
              ayakovlev@atlassian.com Andriy Yakovlev [Atlassian]
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: