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

Atlassian Template Renderer's memory usage too high

    XMLWordPrintable

Details

    Description

      NOTE: This bug report is for JIRA Server. Using JIRA Cloud? See the corresponding bug report.

      The ATR creates 1 velocity engine per plugin. Each one of these has a fixed-size pool of 20 parsers that end up using a lot of memory.

      We should try to reduce this. One option is to plug in a different pool implementation for the parser pools (they are pluggable).

      The holy grail would be to reuse 1 Velocity engine across all plugins (actually, one for velocity 1.5 and another for 1.6). Don't know if this is possible but it should be!

      To go back to the old behaviour on 5.1.x, pass -Datr.velocity.fixed.size.pool=true as a JVM system property

      Attachments

        1. after.png
          after.png
          84 kB
        2. before.png
          before.png
          84 kB
        3. java_pid21651.hprof-YourKit.png
          java_pid21651.hprof-YourKit.png
          82 kB
        4. jdog_atr_after.png
          jdog_atr_after.png
          36 kB
        5. jdog_atr_before.png
          jdog_atr_before.png
          41 kB
        6. velocity parsers.png
          velocity parsers.png
          69 kB

        Issue Links

          Activity

            People

              edalgliesh Eric Dalgliesh
              lmiranda Luis Miranda (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: