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

Ship Jira with bigger ReservedCodeCacheSize by default

    XMLWordPrintable

Details

    • 14
    • 14
    • 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

      Problem Definition

      Default Java 8 has Tiered Compilation, so JDK HotSpot VM users can benefit from improved startup times with the server compiler.
      Compiled JIT code is stored in Code cache and default CodeCache size is equal to 240MB. This is normally enough to middle size application.
      In case of JIRA with large number of plugins, size of CodeCache is too small, that may lead to cache overflow and flush of the cache, which causes significant performance degradation.
      See related KB: JIRA crashes due to CodeCache is full

      Suggested Solution

      Ship JIRA with larger CodeCache: 384m (or 512m)

      Workaround

      Edit bin/setenv.sh file and add to JVM_SUPPORT_RECOMMENDED_ARGS

      -XX:ReservedCodeCacheSize=384m
      

      Note on fix

      Added the following options:

      #
      # The following specifies JVM code cache configuration.  High value of reserved size allows JIRA to load more installed apps.
      #
      JVM_CODE_CACHE_ARGS='-XX:InitialCodeCacheSize=32m -XX:ReservedCodeCacheSize=512m'
      

      Attachments

        Issue Links

          Activity

            People

              pczuj Przemyslaw Czuj
              ayakovlev@atlassian.com Andriy Yakovlev [Atlassian]
              Votes:
              8 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: