Ship Jira with bigger ReservedCodeCacheSize by default

XMLWordPrintable

    • 14
    • 14

      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'
      

            Assignee:
            Przemyslaw Czuj (Inactive)
            Reporter:
            Andriy Yakovlev [Atlassian]
            Votes:
            8 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: