-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Highest
-
Affects Version/s: 9.2.18, 10.2.8
-
Component/s: Content - Labels
-
Severity 1 - Critical
This issue was introduced as a regression in Confluence 9.2.18 and 10.2.8 with instances that had a large number of pages sharing a label. We have released an out of band update (9.2.19, 10.2.10) to fix this issue for customers who installed the previous affected version. We would not recommend an urgent upgrade these fixed versions unless you are already running an affected version.
Issue Summary
After upgrade to 9.2.18 or 10.2.8, Performance issues encountered when labels are added to pages or any other actions that trigger addition of labels on pages
Steps to Reproduce
- Install Confluence version 9.2.18
- Import a few large spaces (added to the ticket)
- Fetch the content IDs by issuing this query, and save the results as labels.txt
SELECT c.contentid FROM CONTENT c JOIN BODYCONTENT bc ON c.contentid = bc.contentid JOIN SPACES s ON c.spaceid = s.spaceid WHERE c.prevver IS NULL AND c.contenttype IN ('PAGE', 'BLOGPOST') AND c.CONTENT_STATUS='current' AND s.spacekey='DRAG'
- Utilize the fetched content IDs to create a bash script that adds unique labels to pages of one of the spaces (DRAG)
- Now open a page from same apace or another and add an existing Label to the page
Expected Results
- The labels get added in less than a second
Actual Results
- Adding label to the pages takes longer than expected
- We can see below stacktrace in the catalina.out file
09-Apr-2026 12:40:13.414 WARNING [Catalina-utility-4] org.apache.catalina.valves.StuckThreadDetectionValve.notifyStuckThreadDetected Thread [http-nio-8090-exec-69 url: /confluence/rest/ui/1.0/content/229355/labels; user: XXXX] (id=[15294]) has been active for [104,178] milliseconds (since [4/9/26, 12:37 PM]) to serve the same request for [<baseurl>/rest/ui/1.0/content/229355/labels] and may be stuck (configured threshold for this StuckThreadDetectionValve is [60] seconds). There is/are [4] thread(s) in total that are monitored by this Valve and may be stuck. java.lang.Throwable at java.base@17.0.18/jdk.internal.misc.Unsafe.park(Native Method) at java.base@17.0.18/java.util.concurrent.locks.LockSupport.park(LockSupport.java:211) at java.base@17.0.18/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:715) at java.base@17.0.18/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:938) at java.base@17.0.18/java.util.concurrent.locks.ReentrantLock$Sync.lock(ReentrantLock.java:153) at java.base@17.0.18/java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:322) at com.atlassian.confluence.internal.search.v2.lucene.LoggingReentrantLock.lock(LoggingReentrantLock.java:31) at com.atlassian.confluence.internal.search.v2.lucene.LuceneConnection.withWriter(LuceneConnection.java:431) at com.atlassian.confluence.internal.search.v2.lucene.LuceneConnection.execute(LuceneConnection.java:648) at com.atlassian.confluence.internal.index.lucene.LuceneSearchIndexAccessor.execute(LuceneSearchIndexAccessor.java:135) at com.atlassian.confluence.internal.search.QueuingConfluenceIndexer.lambda$new$0(QueuingConfluenceIndexer.java:36) at com.atlassian.confluence.internal.search.QueuingConfluenceIndexer$$Lambda$9473/0x00007acfa4e7f6a8.accept(Unknown Source) at com.atlassian.confluence.internal.search.QueuingConfluenceIndexer$InternalConfluenceIndexer.doReindex(QueuingConfluenceIndexer.java:240) at com.atlassian.confluence.internal.search.QueuingConfluenceIndexer$InternalConfluenceIndexer.reIndex(QueuingConfluenceIndexer.java:222) at com.atlassian.confluence.labels.permissions.LabelPermissionIndexerImpl.reindexLabelPermissions(LabelPermissionIndexerImpl.java:301) at com.atlassian.confluence.labels.permissions.LabelPermissionIndexerImpl.lambda$onLabelAdd$0(LabelPermissionIndexerImpl.java:129)
- Any actions from the UI triggering addition of Labels on a Page causing the issue
- This also impacts the creation of templates, Copy page and also addition of some third party contents
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available
- is caused by
-
CONFSERVER-100534 Labels List Macro Causes Slow Page Loading in Confluence
-
- In Progress
-
- mentioned in
-
Page Loading...