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

Jira's Integrity Checker can cause OutOfMemoryError or Full GC cycles when Issues have too much data in the Description

    XMLWordPrintable

Details

    Description

      Issue Summary

      This is reproducible on Data Center: yes

      Steps to Reproduce

      1. Setup a Jira SW or SM instance with 4GB of Heap
      2. Create 140 Issues with 30,000,000 characters in each of their Description fields
      3. Run the Integrity Checker through Jira's UI

      Expected Results

      The Integrity Checker would finish and report no issues to be fixed.

      Actual Results

      Jira will run into an OutOfMemoryError or enter consecutive Full GC cycles.

      If a Heap dump's generated, we'll see the Integrity Checker HTTP thread retaining the most Heap:


      Example of a ~10GB Heap instance with over 75% retained by the Integrity Checker Thread alone.


      Example of how a single issue with 30 million characters in the Description can retain so much memory.

      Workaround

      You may try running some equivalent queries directly on the DB to bypass loading data into the application:
      SQL equivalents for Jira server's workflow integrity checks

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rmartinez3@atlassian.com Rodrigo Martinez
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: