# Kibana 6.6.1 plugin install stuck at Optimizing and caching browser bundles

**URL:** <https://discuss.elastic.co/t/kibana-6-6-1-plugin-install-stuck-at-optimizing-and-caching-browser-bundles/171391>\
**Category:** Kibana\
**Created:** [March 7, 2019, 10:48pm UTC](https://discuss.elastic.co/t/kibana-6-6-1-plugin-install-stuck-at-optimizing-and-caching-browser-bundles/171391 "2019-03-07T22:48:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bbking](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bbking/32/77563_2.png) [@bbking](https://discuss.elastic.co/u/bbking)\
**Post date:** [March 7, 2019, 10:48pm UTC](https://discuss.elastic.co/t/kibana-6-6-1-plugin-install-stuck-at-optimizing-and-caching-browser-bundles/171391/1 "2019-03-07T22:48:50Z")

</div>

Hi, I'm trying to add a custom plugin with `bin/kibana-plugin install file://[path]`, but the process is stuck at `Optimizing and caching browser bundles...` forever.  
I updated kibana.yml with custom configurations before calling `install`.  
Should I start with default kibana.yml before installing plugin? Why is it stuck?

```auto
xpack.monitoring.enabled: false
xpack.security.enabled: false
elasticsearch.hosts: ["http://localhost:9200"]
server.host: "localhost"
logging.timezone: "America/Los_Angeles"
logging.quiet: true
# disable unused plugins
timelion.enabled: false
xpack.canvas.enabled: false
xpack.ml.enabled: false

```

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [March 8, 2019, 4:51pm UTC](https://discuss.elastic.co/t/kibana-6-6-1-plugin-install-stuck-at-optimizing-and-caching-browser-bundles/171391/2 "2019-03-08T16:51:22Z")

</div>

> [@bbking](#):
>
> Optimizing and caching browser bundles...

The optimizing process is very CPU intensive and I have seen it take up to 10 minutes to complete. How long have you let it run for?We have made several improvements on this matter that will come along by `6.6.x` and `6.7.x` .  
Meanwhile I believe the best workaround to deal with this situation would be:

1. Stop kibana.
2. Set the current directory to the Kibana installation dir. (For example `cd /usr/share/kibana` )
3. `rm -rf optimize/bundles`
4. `NODE_OPTIONS="--max-old-space-size=4096" ./bin/kibana`
5. Kibana should optimize and start normally in some minutes

Let us know if this helps,  
Thanks  
Rashmi

---

<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:** [April 5, 2019, 4:51pm UTC](https://discuss.elastic.co/t/kibana-6-6-1-plugin-install-stuck-at-optimizing-and-caching-browser-bundles/171391/3 "2019-04-05T16:51:31Z")

</div>

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