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
          84 kB
          Eric Dalgliesh
        2. before.png
          84 kB
          Eric Dalgliesh
        3. java_pid21651.hprof-YourKit.png
          82 kB
          Eric Dalgliesh
        4. jdog_atr_after.png
          36 kB
          Eric Dalgliesh
        5. jdog_atr_before.png
          41 kB
          Eric Dalgliesh
        6. velocity parsers.png
          69 kB
          Eric Dalgliesh

        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: