Linking plugin makes pages load slow

  • 2
  • Problem
  • Updated 2 years ago

Hi,

In confluence 5.8.18 with linking plugin 4.1.0 pages load very slow when they contain many links that make use of the linking plugin. When the linking plugin is enabled a specific page in our confluence instance takes 2,5 - 4 seconds to load. However, when disabling the linking plugin the same page takes less than half a second to load.

Do you have any advice or work-around to fix this problem?

Kind regards,

Rajiv

Photo of Rajiv Karamat

Rajiv Karamat

  • 9 Posts
  • 0 Reply Likes

Posted 2 years ago

  • 2
Photo of Suresh Mathusuthanan

Suresh Mathusuthanan, Alum

  • 117 Posts
  • 9 Reply Likes
Hi Rajiv,

It would be great if you can provide us the storage format of the affected page you mentioned? 

You can get the storage format of the page via: 
  • Menu (at the top right corner of the page) > Storage Format

Thank you.

Regards,
Suresh
Photo of Rajiv Karamat

Rajiv Karamat

  • 9 Posts
  • 0 Reply Likes
Hi Suresh,

This is the storage format:

<ac:structured-macro ac:macro-id="3b47f461-ed68-4e86-8b4c-e93b8f401101" ac:name="section" ac:schema-version="1"><ac:rich-text-body><ac:structured-macro ac:macro-id="df48beaf-504b-4d6d-a458-7dd24b1d954d" ac:name="column" ac:schema-version="1"><ac:parameter ac:name="width">1%</ac:parameter><ac:rich-text-body>
<p>&nbsp;</p></ac:rich-text-body></ac:structured-macro><ac:structured-macro ac:macro-id="8cd7c414-d417-4881-be90-d5539c6753ad" ac:name="column" ac:schema-version="1"><ac:parameter ac:name="width">68%</ac:parameter><ac:rich-text-body><ac:structured-macro ac:macro-id="074c19de-e0fe-4983-91b2-46fb12e09f5d" ac:name="panel" ac:schema-version="1"><ac:parameter ac:name="borderColor">#cccccc</ac:parameter><ac:parameter ac:name="bgColor">#CDDFF3</ac:parameter><ac:parameter ac:name="borderStyle">solid</ac:parameter><ac:rich-text-body>
<p><strong>Afdeling Functioneel Applicatie Beheer</strong><br /> Deze afdeling verzorgt het Functioneel Applicatie Beheer van de diverse applicaties.</p>
<p>Functioneel Applicatie Beheer behelst het volgende:</p>
<ul>
<li>Participeren in projecten.</li>
<li>Het beoordelen en aanvullen en laten uitvoeren van RFC's.</li>
<li>Het vergaren van wensen en eisen van de gebruikersorganistatie.</li>
<li>Het voorkomen en oplossen van applicatieproblemen.</li></ul></ac:rich-text-body></ac:structured-macro>
<h1>Applicaties / Kennisgebieden</h1><ac:structured-macro ac:macro-id="0b7d9153-5a38-4585-b82c-d235961b6e84" ac:name="deck" ac:schema-version="1"><ac:parameter ac:name="id">kvknlurls</ac:parameter><ac:parameter ac:name="class">aqua</ac:parameter><ac:rich-text-body><ac:structured-macro ac:macro-id="4e2f49fc-eb62-422c-bee9-74a20ae3832b" ac:name="card" ac:schema-version="1"><ac:parameter ac:name="label">Cluster HRS</ac:parameter><ac:rich-text-body><ac:structured-macro ac:macro-id="4ecf508f-3c8f-44a9-af9b-d124e833932d" ac:name="excerpt-include" ac:schema-version="1"><ac:parameter ac:name=""><ac:link><ri:page ri:content-title="Cluster HRS" /></ac:link></ac:parameter><ac:parameter ac:name="nopanel">true</ac:parameter></ac:structured-macro></ac:rich-text-body></ac:structured-macro><ac:structured-macro ac:macro-id="a1c41a70-8c4c-4caa-a2b2-316aae464e71" ac:name="card" ac:schema-version="1"><ac:parameter ac:name="label">Cluster Online Producten</ac:parameter><ac:rich-text-body><ac:structured-macro ac:macro-id="95082718-b39a-49b1-819c-60dc4fcd150f" ac:name="excerpt-include" ac:schema-version="1"><ac:parameter ac:name=""><ac:link><ri:page ri:content-title="Cluster Online Producten Diensten en Informatie Producten" /></ac:link></ac:parameter><ac:parameter ac:name="nopanel">true</ac:parameter></ac:structured-macro></ac:rich-text-body></ac:structured-macro><ac:structured-macro ac:macro-id="3b14a1fa-cecc-484d-9e8c-4bb200010603" ac:name="card" ac:schema-version="1"><ac:parameter ac:name="label">Cluster Data Management</ac:parameter><ac:rich-text-body><ac:structured-macro ac:macro-id="bf5aaf99-5e8d-4a9e-b732-e1b877e78da8" ac:name="excerpt-include" ac:schema-version="1"><ac:parameter ac:name=""><ac:link><ri:page ri:content-title="Cluster Data Management" /></ac:link></ac:parameter><ac:parameter ac:name="nopanel">true</ac:parameter></ac:structured-macro></ac:rich-text-body></ac:structured-macro><ac:structured-macro ac:macro-id="2d4bb725-89ae-4220-8b4d-48330cad6cbb" ac:name="card" ac:schema-version="1"><ac:parameter ac:name="label">Cluster Supporting / Middleware</ac:parameter><ac:rich-text-body><ac:structured-macro ac:macro-id="d8cffb7b-f209-42d0-a965-597e39ebaa9e" ac:name="excerpt-include" ac:schema-version="1"><ac:parameter ac:name=""><ac:link><ri:page ri:content-title="Cluster Supporting en Middleware" /></ac:link></ac:parameter><ac:parameter ac:name="nopanel">true</ac:parameter></ac:structured-macro></ac:rich-text-body></ac:structured-macro><ac:structured-macro ac:macro-id="be60a8b6-e429-4626-a8c0-259e3dc312c1" ac:name="card" ac:schema-version="1"><ac:parameter ac:name="label">Cluster Standaard / Overig</ac:parameter><ac:rich-text-body><ac:structured-macro ac:macro-id="664bbac3-f5d3-4406-8b65-47a4fab9e049" ac:name="excerpt-include" ac:schema-version="1"><ac:parameter ac:name=""><ac:link><ri:page ri:content-title="Cluster Standaard en Overig" /></ac:link></ac:parameter><ac:parameter ac:name="nopanel">true</ac:parameter></ac:structured-macro></ac:rich-text-body></ac:structured-macro></ac:rich-text-body></ac:structured-macro>
<p>&nbsp;</p>
<h1>Applicatiebeheer algemeen</h1>
<p>Overzicht testen FAB</p>
<h1>Activiteiten</h1>
<p><ac:link><ri:page ri:content-title="Reguliere Algemene Beheer Activiteiten" /></ac:link></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h1>Links</h1>
<ul>
<li><ac:link><ri:page ri:content-title="Applicaties DEV" ri:space-key="ictmi" /></ac:link></li>
<li><ac:link><ri:page ri:content-title="Applicaties TST" ri:space-key="ictmi" /></ac:link></li>
<li><ac:link><ri:page ri:content-title="Applicaties ACP WAS V6" ri:space-key="ictmi" /><ac:plain-text-link-body><![CDATA[Applicaties ACP]]></ac:plain-text-link-body></ac:link></li>
<li><ac:link><ri:page ri:content-title="Applicaties FUN WAS V6" ri:space-key="ictmi" /><ac:plain-text-link-body><![CDATA[Applicaties FUN]]></ac:plain-text-link-body></ac:link></li>
<li><ac:link><ri:page ri:content-title="Applicaties EDU WAS V6" ri:space-key="ictmi" /><ac:plain-text-link-body><![CDATA[Applicaties EDU]]></ac:plain-text-link-body></ac:link></li>
<li><ac:link><ri:page ri:content-title="Applicaties PRD" ri:space-key="ictmi" /></ac:link></li></ul>
<h1>Index Functioneel Applicatiebeheer</h1>
<p><ac:link><ri:page ri:content-title="Index Functioneel Applicatiebeheer" /></ac:link></p></ac:rich-text-body></ac:structured-macro><ac:structured-macro ac:macro-id="4b25a446-9644-4fc2-a814-acd54aead599" ac:name="column" ac:schema-version="1"><ac:parameter ac:name="width">1%</ac:parameter><ac:rich-text-body>
<p>&nbsp;</p></ac:rich-text-body></ac:structured-macro><ac:structured-macro ac:macro-id="bf8a81ee-8bfd-4dd5-ae0c-8502602e90c1" ac:name="column" ac:schema-version="1"><ac:parameter ac:name="width">30%</ac:parameter><ac:rich-text-body>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p></ac:rich-text-body></ac:structured-macro>
<p>&nbsp;</p>
<p>&nbsp;</p></ac:rich-text-body></ac:structured-macro>

Regards,

Rajiv
Photo of Brooke

Brooke

  • 2 Posts
  • 0 Reply Likes
I am seeing a similar issue when viewing a page with many links.  It is even slow when I click on a link-window macro item to edit.  It seems like maybe it is trying to actually request the URI content.  In our case, that is likely not to work since the URIs that are being linked to require credentials that the client's browser would have, but link-window inside the server may not - depending on how it would make the request.

In either case, it would not be our desire to have the page render try to access the links - if that is what is happening.

When we turned on performance logging, we saw something like this....

[128595ms] - XW Interceptor: After defaultStack: /pages/viewpage.action (ViewPageAction.execute())

      [128595ms] - XW Interceptor: After validatingStack: /pages/viewpage.action (ViewPageAction.execute())

        [2ms] - PageManager.getPage()

        [1ms] - PageManager.getPage()

        [0ms] - PageManager.getPage()

        [0ms] - PermissionManager.hasPermission()

        [0ms] - ContentEntityManager.getById()

        [0ms] - Rendering velocity template: /templates/plugin/linking/linkwindow.vm

        [609ms] - PageManager.getPage()

        [603ms] - PageManager.getPage()

        [0ms] - PageManager.getPage()

        [0ms] - PermissionManager.hasPermission()

        [0ms] - ContentEntityManager.getById()

        [0ms] - Rendering velocity template: /templates/plugin/linking/linkwindow.vm

        [608ms] - PageManager.getPage()

        [604ms] - PageManager.getPage()


Photo of Brooke

Brooke

  • 2 Posts
  • 0 Reply Likes
We just verified that version 3.0.10 of the Linking plugin does not have the same performance issue.  4.1.1 does have the issue.
Photo of Suresh Mathusuthanan

Suresh Mathusuthanan, Alum

  • 117 Posts
  • 9 Reply Likes
Hi Brooke,

Can you share your Confluence version of your instance and the storage format of the affected page you mentioned? 

You can get the storage format of the page via: 
  • Menu (at the top right corner of the page) > Storage Format

Thank you.

Regards,
Suresh
(Edited)
Photo of Rajiv Karamat

Rajiv Karamat

  • 9 Posts
  • 0 Reply Likes
Hi Brooke,

Have you also tried all linking versions in between? Because our Confluence 5.8.18 isn't compatible with linking 3.0.10. If not, I will try this myself in the next few days.

Regards,

Rajiv
Photo of Rajiv Karamat

Rajiv Karamat

  • 9 Posts
  • 0 Reply Likes
It's not working for version 3.1.0
Photo of Suresh Mathusuthanan

Suresh Mathusuthanan, Alum

  • 117 Posts
  • 9 Reply Likes
Hi Rajiv and Brooke,

In order for me to further investigate, it would be great if you can share the browser type and version you're using. 

As of now, I'm unable to replicate this issue on my test instance. 

Thank you.

Regards,
Suresh
(Edited)
Photo of Rajiv Karamat

Rajiv Karamat

  • 9 Posts
  • 0 Reply Likes
Hi Suresh,

It's about confluence 5.8.18 and linking plugin 4.1.0 as mentioned earlier. It occurs in the following browsers:

- Firefox 48.0.2
- IE 11
- Chrome 52.0.2743.116

The action takes at least twice as long with linking plugin enabled.

Regards,

Rajiv
Photo of Suresh Mathusuthanan

Suresh Mathusuthanan, Alum

  • 117 Posts
  • 9 Reply Likes
Hi Rajiv,

As of now, we are still unable to replicate this issue on our test instance.

In order to have a further understanding of your issue, it would be great if you can clarify about the following :
  • Does this issue occur randomly in your Confluence pages?
  • Do you experience the slowness in pages in within the same space? 
  • Have you done any customization in your Confluence?

Can you try to replicate the issue after performing each of the step below. This will help you narrow down the possible cause of the issue :

  1. Navigate to Confluence Admin >> Plugins and Enable Safe Mode.
  2. Navigate to Confluence Admin >> Themes, and select the *Default Theme* as the current theme.
  3. Navigate to Confluence Admin >> Layouts and reset all custom layouts to default (but make sure to make a backup of the custom layouts first!, by editing the layout, and copy pasting it to a text editor, to avoid losing your customization)
  4. Navigate to Confluence Admin >> Custom HTML, and make sure that you do not have any Custom HTML added to Confluence. If there are, edit and save them into a text editor as a backup, and remove all of them.
  5. Navigate to Confluence Admin >> Stylesheet, save all custom CSS into a text editor and remove all of them.


Regards,

Suresh

Photo of Rajiv Karamat

Rajiv Karamat

  • 9 Posts
  • 0 Reply Likes
Hi Suresh,

Strange that you can't replicate this issue. Do you see the exact same response times when de plugin is enabled and disabled? And are you viewing pages with a lot of links that make use of the linking plugin?

I've already performed the steps you mentioned. No custimizations were active as is described in steps 2 till 5. Enabling safe mode shows quick response times for all pages and when I leave all plugins disabled, except for Linking plugin, respone times go up.

This doesn't occur randomly. It only applies to spaces/pages in which there are a lot of links which make use of the linking plugin. So, most pages just act normal, except for the pages that make a lot of use of the linking plugin.

Regards,

Rajiv
Photo of Suresh Mathusuthanan

Suresh Mathusuthanan, Alum

  • 117 Posts
  • 9 Reply Likes
Hi Rajiv,

It would best if you could reach out to us at our Support Desk : support@servicerocket.com in order for us to further investigate your issue. 

Thank you.

Regards,
Suresh