• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 3.2.11, 3.8.2
    • 3.2.0, 3.3.0, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.1
    • Automation

      Description of problem
      In JIRA Service Desk, PSMQ is a component of automation and is present in versions 3.2.x and newer.

      • Note: PSMQ is present but not enabled in 3.2.x.
      • Enabled by default in 3.3.x and newer

      PSMQ uses execution threads that are part of a thread pool and these threads are reused. A PSMQ thread may take up an excessive amount of heap due to the way threads are reused.

      Experienced Behavior
      PSMQ threads using excessive heap. This can cause other effects, such as an OutOfMemory error.

      When viewing heap dump:

      • PSMQ threads referred to as "PsmmqAsyncExecutors-job"
      • Thread is retaining a large amount of heap
      • Investigating the thread shows that heap is associated with ThreadLocalMap and com.atlassian.jira.issue.index.SearcherCache

      Details
      This problem manifests on Automation PSMQ thread pool. Since threads are being reused, they might have pretty long lifetimes, and it seems like JiraThreadLocalUtils is calling the DefaultIndexManager#flushThreadLocalSearcher method, however in SearcherCache it will reassign the variable to a new map, rather than using ThreadLocal.remove() during threads lifetimes.

          Form Name

            [JSDSERVER-5355] PSMQ threads can use excessive heap

            Suddha made changes -
            Remote Link Original: This issue links to "PSR-44 (Bulldog)" [ 383362 ] New: This issue links to "PSR-44 (JIRA Server (Bulldog))" [ 383362 ]
            Owen made changes -
            Workflow Original: JSD Bug Workflow v5 - TEMP [ 2429866 ] New: JAC Bug Workflow v3 [ 3126180 ]
            Status Original: Done [ 10044 ] New: Closed [ 6 ]
            Owen made changes -
            Symptom Severity Original: Major [ 14431 ] New: Severity 2 - Major [ 15831 ]
            Tony D. made changes -
            Remote Link New: This issue links to "PSR-44 (Bulldog)" [ 383362 ]
            Andriy Yakovlev [Atlassian] made changes -
            Remote Link Original: This issue links to "Page (Extranet)" [ 335735 ]
            Andriy Yakovlev [Atlassian] made changes -
            Remote Link New: This issue links to "Page (Extranet)" [ 335735 ]
            David Chan made changes -
            Remote Link New: This issue links to "Page (Extranet)" [ 331318 ]
            Sergey Zaporozhtsev (Inactive) made changes -
            Affects Version/s New: 3.8.1 [ 75430 ]
            Affects Version/s Original: 3.8.0 [ 73404 ]
            Sergey Zaporozhtsev (Inactive) made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Awaiting Release [ 11372 ] New: Done [ 10044 ]
            SET Analytics Bot made changes -
            UIS Original: 11 New: 15

              mmcmahon Matthew McMahon (Inactive)
              tevans Tim Evans (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: