-
Bug
-
Resolution: Fixed
-
Medium
-
9.12.8, 9.12.9, 9.12.10, 9.12.11, 9.15.2, 9.16.1
-
None
-
9.12
-
19
-
Severity 2 - Major
-
64
-
-
Issue Summary
Somewhere around antisamy-1.6.8-atlassian-5, a bug was introduced which causes a slow but gradual rise in heap usage. Once the heap is near to exhaustion, full GC pauses and even OutOfMemoryErrors (OOM) can occur as a result.
This is reproducible on Data Center: yes
Steps to Reproduce
- Install an impacted version of Jira (9.12.8. or higher)
- Load some content (which uses Activity Streams like dashboard)
- Monitor GC logs over time to observe the slow but persistent rise in heap usage
Expected Results
Heap usage should remain fairly static over time
Actual Results
Heap usage slowly rises, often leading to full GC and then OutOfMemoryErrors (OOM), especially on smaller heaps (ie. less than 4GB)
Heap dumps will show that the the DOM parser for AntiSamy grows bigger and bigger, with all DOM elements added to an internal list that are never cleared.
Workaround
Restart Jira if heap usage rises too high towards Xmx. The frequency with which restarts are required will depend on heap size and the level of activity on your instance.
- relates to
-
CONFSERVER-95967 The AntiSamy package (1.6.8-atlassian-5 to 1.6.8-atlassian-10) has a slow memory leak, which can eventually impact Confluence performance
-
- Closed
-
-
BOAR-470 Loading...