Confluence thread spike and grinds to a halt with Link Preview plugin enabled

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Problem

Confluence thread spikes randomly, and Confluence seems to grind to a halt. Thread dumps taken 1 minute apart shows the following long running thread:

1 com.xpandit.confluence.plugins.link.preview.rest.LinkResolver.retrieveType(LinkResolver.java:67)

Diagnosis

  1. Take 3 external thread dumps spaced 1 minute apart, during the thread spike: Generating a Thread Dump Externally

  2. Analyze the thread dumps using tools such as TDA: https://java.net/projects/tda

  3. Look for long running threads that are in the "Runnable" state. This KB applies to you if you see threads such as the one highlighted above

Cause

The Link Preview plugin for Confluence: https://marketplace.atlassian.com/plugins/com.xpandit.plugins.linkpreview-confluence

Solution

Resolution

Disable the said plugin via Confluence Admin >> Manage Add-Ons

Updated on April 2, 2025

Still need help?

The Atlassian Community is here for you.