-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
None
-
Affects Version/s: 6.8.0, 7.13.7
-
Component/s: Macros - Gadgets
-
None
-
4
-
Severity 2 - Major
-
1
Adding the Agile Wallboard or Sprint-related gadgets to a Confluence page results in a dramatic increase in the number of requests and cause slowness.
Steps to Reproduce:
- Install Jira and Confluence , in this test Jira Software 7.3.7 and Confluence 6.8.0 are used
- Create Application Link between Jira and Confluence
- In Jira,
- in Confluence
- go to Administrations >> External Gadgets >> paste the URL from step 2 into the Gadget Specification URL, or add the full gadget feed
- create pages and insert Jira Agile Wallboard gadget(s) into it
This problem is also reproducible with Sprint-related gadgets, tested with:
- Sprint health
- Spring burndown
- Days remaining in sprint
Expected results
Page load time is not affected significantly.
Actual results
Page with 1 Agile Wallboard gadget will add extra time to load. Following are the test results for various of pages:
| page's content | Loading | Scripting | Renderring | Painting | Other | Idle | Total Load(Range) |
|---|---|---|---|---|---|---|---|
| Text only | 68ms | 992ms | 87ms | 12 ms | 178ms | 209ms | 1.57s |
| 2 Pie Charts | 68ms | 1008ms | 90ms | 13 ms | 184ms | 243ms | 1.84s |
| 1 Agile Wallboard gadget | 252ms | 1670ms | 232ms | 25ms | 749ms | 1066ms | 4s |
| Duplicate Agile Wallboard Gadget | 299ms | 2136ms | 356ms | 50ms | 1280ms | 1277ms | 5.50s |
| 2 different Agile Wallboard Gadget | 313ms | 2117ms | 279 ms | 22 ms | 1259 ms | 1285 ms | 5.28s |
| 3 different Agile Wallboard Gadget | 525ms | 2479ms | 358ms | 43 ms | 1738 ms | 1368 ms | 6.51s |
| 10 Agile Wallboard Gadget | 1374ms | 5228ms | 2007ms | 94ms | 5847ms | 2886ms | 17.44s |
Attached are the Chrome's tools as shown:
Inspecting the network tab, we can see that adding one of those gadgets to a page increases the number of requests to 500+ for a single page load. Each gadget added to the page will add more 500+ requests as well, even if it is using the same settings as the existing ones. Most of those requests are related to CSS and JS files associated with the gadgets.
This results in several stalled requests since the browsers have a limitation on the number of parallel requests. Each stalled one can take a few seconds, leading to a long page load time due to the accumulated stalls.
This behavior is not reproducible when adding the same gadgets to a Jira dashboard, so it is isolated to using them on Confluence pages.
Workaround
Enabling caching of static files on the proxy or load balancer helps. Since most of the extra requests are for static files, it decreases the stalled time for each one of them, reducing the overall page load time. Consult your network team to check if this is a viable option.
It is also good to avoid adding multiple of the affected gadgets to a single page, since each one of them will increase the page load time even further.