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

Jira does not close handles of old index properly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 5.1.6, 5.2
    • 5.0.7, 5.1, 5.1.2
    • None
    • WAR-Installations of 5.0.7 and 5.1.2 running on a linux server.

    Description

      When reindexing Jira does not close the handles on the old index-files properly.
      Using lsof +L1 we could identify 6.89GiB of old indexes still open by jira but allready unlinked on the hard-drive.

      We run reindexing every night at 3am triggered by a service-task. Right now this means we should better restart Jira every week or two so we don't need a bigger data partition and improve Jira performance.

      How to reproduce?
      I just now hit "Reindex" inside Jira and after it finished there were 17 new lines in the output of lsof +L1.

      Workaround
      1. Disable the index optimization job as per our How to Disable the Index Optimization Job in JIRA KB article.
        This job is not necessary from JIRA 5.0 onwards and was deprecated as of JIRA 5.1.6 (JRA-29487).
      2. Whenever a full reindex is performed on JIRA, restart it afterwards.

      Attachments

        Issue Links

          Activity

            People

              edalgliesh Eric Dalgliesh
              e20c2a5ea0ff buch.de internetstores AG
              Votes:
              2 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: