# Kibana is extremely slow (Loading graphs)

**URL:** https://discuss.elastic.co/t/kibana-is-extremely-slow-loading-graphs/345694
**Category:** Kibana
**Created:** [October 25, 2023, 5:47am UTC](https://discuss.elastic.co/t/kibana-is-extremely-slow-loading-graphs/345694 "2023-10-25T05:47:47Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Saili\_Bakalkar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saili_bakalkar/32/124924_2.png) [@Saili\_Bakalkar](https://discuss.elastic.co/u/Saili_Bakalkar)
#### Post date: [October 25, 2023, 5:47am UTC](https://discuss.elastic.co/t/kibana-is-extremely-slow-loading-graphs/345694/1 "2023-10-25T05:47:47Z")

</div>

Hello everyone,

I'm encountering significant performance issues with my Kibana setup, and I'm seeking guidance to improve its responsiveness. I've attached images to provide insights into the current state of our cluster and configuration. To give some context, our ELK stack is running on a single cluster, and we're fetching data from Postgres every minute.

**Current Challenges:**

1. **Slow Dashboard Loading:** Kibana dashboards are loading extremely slowly, impacting our ability to make real-time data-driven decisions.

2. **Attempts to Resolve:** I've already taken several steps to address the issue, including:

- Also implementing lazy loading in JS as i have used the dashboards as an iframe in my project

**Seeking Help:**

I would appreciate any suggestions or guidance from the community on what additional steps I can take to improve Kibana's performance. " **I'm looking for a checklist of best practices and optimizations to ensure faster loading of dashboards."**

**Cluster Details:**

- Elasticsearch Version: 8.9.0
- Kibana Version: 8.9.1

**Additional Information:**

If there's any other information needed to diagnose and resolve this issue, please let me know, and I'll provide it promptly.  
Also while loading a single iframe almost 200 requests happen if there any way to reduce,also is it possible to load the kibana dashboard in 2 secs.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/9/a903951d382d3d60b5a35b1c97ca7a0ece782fa4.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/8/68e527e1ee175c964a37b78105ae2542288148ef.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/0/507a8163034cf8585e0fa28eabf3a3ab409bb949.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/7/d7096ce948f1b64e16b41aec025f28f594e2674e.png)

---

<div class="post-metadata">

### Author: ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)
#### Post date: [October 25, 2023, 9:46am UTC](https://discuss.elastic.co/t/kibana-is-extremely-slow-loading-graphs/345694/2 "2023-10-25T09:46:21Z")

</div>

Hi @Saili_Bakalkar,

Thanks for raising the issue. Can you confirm if the slowness is only observed in the dashboard when running within the iframe? Or do you see a similar slowness in Kibana directly?

I think we need more information on what is causing the problem as it could be down to a long running query. Can you try either checking the slowlog or maybe APM to see what's going on with your dashboard, [as per this blog](https://www.elastic.co/blog/debugging-kibana-dashboards)?

---

<div class="post-metadata">

### Author: ![Saili\_Bakalkar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saili_bakalkar/32/124924_2.png) [@Saili\_Bakalkar](https://discuss.elastic.co/u/Saili_Bakalkar)
#### Post date: [October 30, 2023, 12:21pm UTC](https://discuss.elastic.co/t/kibana-is-extremely-slow-loading-graphs/345694/3 "2023-10-30T12:21:43Z")

</div>

Hey carly the kibana dashboard loads in like 1 or 1.5 secs ,its the issue when its embedded in an iframe,if the issue was a long running query it would have misbehaved in kibana as well.Also just wanted to confirm whats the min time a kibana dashboard can load within an iframe

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/f/6fcf6034f2392b9e5988850ceaaecd484846571f.png)  
Example for one index,what should i understand from this?

---

<div class="post-metadata">

### Author: ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)
#### Post date: [October 31, 2023, 11:18am UTC](https://discuss.elastic.co/t/kibana-is-extremely-slow-loading-graphs/345694/4 "2023-10-31T11:18:57Z")

</div>

Hi @Saili_Bakalkar,

From the above profile it looks like the query from that particular graph is coming back within ~4ms, with the majority of time on a ConstantScoreQuery. Which seems ok.

I'm surprised that you're seeing a significant overhead when embedding in an iframe. Have you taken a look at the network profile with Chrome Developer Tools to see what's going on and what steps are contributing to the delay?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [November 28, 2023, 11:19am UTC](https://discuss.elastic.co/t/kibana-is-extremely-slow-loading-graphs/345694/5 "2023-11-28T11:19:56Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
