# Memory leakage of Vega visualization when refreshing data

**URL:** <https://discuss.elastic.co/t/memory-leakage-of-vega-visualization-when-refreshing-data/306751>\
**Category:** Kibana\
**Tags:** vega\
**Created:** [June 9, 2022, 1:52am UTC](https://discuss.elastic.co/t/memory-leakage-of-vega-visualization-when-refreshing-data/306751 "2022-06-09T01:52:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyh119](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kyh119/32/101279_2.png) [@kyh119](https://discuss.elastic.co/u/kyh119)\
**Post date:** [June 9, 2022, 1:52am UTC](https://discuss.elastic.co/t/memory-leakage-of-vega-visualization-when-refreshing-data/306751/1 "2022-06-09T01:52:43Z")

</div>

Hi.

I created a dashboard with my Vega visualizations that display the latest data.

It's kind of real-time monitoring dashboard so I have to refresh every certain period.

When it refreshes every 10 seconds, the heap size of browser increases every 10 seconds so the browser get killed finally.

I found that the memory increases only with Vega visualizations, so I think Kibana doesn't dispose Vega visualizations.

It's very critical issue for me. I have to do my job with Vega.

Is there any idea to prevent the memory leakage?

Thanks

---

<div class="post-metadata">

**Author:** ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)\
**Post date:** [June 9, 2022, 4:59am UTC](https://discuss.elastic.co/t/memory-leakage-of-vega-visualization-when-refreshing-data/306751/2 "2022-06-09T04:59:20Z")

</div>

Hi  
Could you provide some details about your installation, which Kibana version are you using, which browser. Is it a specific Vega visualization that causes the problem, or a general problem (think you answered it already, it's a general, right)?  
thx & Best,  
Matthias

---

<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:** [July 7, 2022, 5:00am UTC](https://discuss.elastic.co/t/memory-leakage-of-vega-visualization-when-refreshing-data/306751/3 "2022-07-07T05:00:19Z")

</div>

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