# Running a Kibana plugin for local development is very slow

**URL:** <https://discuss.elastic.co/t/running-a-kibana-plugin-for-local-development-is-very-slow/220501>\
**Category:** Kibana\
**Created:** [February 22, 2020, 4:23pm UTC](https://discuss.elastic.co/t/running-a-kibana-plugin-for-local-development-is-very-slow/220501 "2020-02-22T16:23:13Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simone\_Scarduzio](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simone_scarduzio/32/17128_2.png) [@Simone\_Scarduzio](https://discuss.elastic.co/u/Simone_Scarduzio)\
**Post date:** [February 22, 2020, 4:23pm UTC](https://discuss.elastic.co/t/running-a-kibana-plugin-for-local-development-is-very-slow/220501/1 "2020-02-22T16:23:13Z")

</div>

Currently running `yarn kbn bootstrap` requires about half an hour on a modern computer. A lot of time is spent in the yarn linking process, which involves Kibana dev/testing dependencies like "storybook", etc.

This reflects also in how excruciatingly slow is the development cycle:

1. yarn start  
.... many minutes... (boot, optimisation of a ton of deps...)
2. interact with Kibana in the browser
3. modify plugin code
4. server crashes... back to 1

Is there a way to speed this up? Like, to avoid that yarn links any Kibana testing related dependencies? We only need to load the minimum bare bone Kibana, for the quickest bootstrap and development cycle.

Thank you!

---

<div class="post-metadata">

**Author:** ![mattkime](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkime/32/43522_2.png) [@mattkime](https://discuss.elastic.co/u/mattkime)\
**Post date:** [February 26, 2020, 10:35pm UTC](https://discuss.elastic.co/t/running-a-kibana-plugin-for-local-development-is-very-slow/220501/2 "2020-02-26T22:35:23Z")

</div>

@Simone_Scarduzio

Yes, running Kibana in development is slow, but it should _not_ be as slow as you're experiencing. What machine are you using for development? What configuration?

I wonder if something is wrong with your development environment.

---

<div class="post-metadata">

**Author:** ![Simone\_Scarduzio](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simone_scarduzio/32/17128_2.png) [@Simone\_Scarduzio](https://discuss.elastic.co/u/Simone_Scarduzio)\
**Post date:** [February 27, 2020, 2:17pm UTC](https://discuss.elastic.co/t/running-a-kibana-plugin-for-local-development-is-very-slow/220501/3 "2020-02-27T14:17:28Z")

</div>

Hi @mattkime, thanks for taking the time to answer this.  
I have the latest dell xps 13 2-in-1 7390 with the Intel i7-1065G7 quad core processor.

In the meantime, I was able to greatly improve the situation moving from Windows 10 to Ubuntu 19.10.

I have the feeling that with Windows, processes that access a very large number of files becomes really slow. Any other development process that did not involve node\_modules was fast.

---

<div class="post-metadata">

**Author:** ![Liza\_Katz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/liza_katz/32/52358_2.png) [@Liza\_Katz](https://discuss.elastic.co/u/Liza_Katz)\
**Post date:** [February 27, 2020, 3:13pm UTC](https://discuss.elastic.co/t/running-a-kibana-plugin-for-local-development-is-very-slow/220501/4 "2020-02-27T15:13:39Z")

</div>

@Simone_Scarduzio I can confirm that running on Windows is particularly slow, probably for the reasons you mention.

There are [some workarounds](https://stackoverflow.com/questions/29395211/npm-install-extremely-slow-on-windows), but I haven't gotten around to testing them particularly with Kibana.

I also switched to Linux and now bootstrapping takes only a minute or so.

---

<div class="post-metadata">

**Author:** ![mattkime](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkime/32/43522_2.png) [@mattkime](https://discuss.elastic.co/u/mattkime)\
**Post date:** [February 27, 2020, 3:21pm UTC](https://discuss.elastic.co/t/running-a-kibana-plugin-for-local-development-is-very-slow/220501/5 "2020-02-27T15:21:43Z")

</div>

@Simone_Scarduzio

You might find better results running the Windows Subsystem for Linux.

---

<div class="post-metadata">

**Author:** ![Simone\_Scarduzio](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simone_scarduzio/32/17128_2.png) [@Simone\_Scarduzio](https://discuss.elastic.co/u/Simone_Scarduzio)\
**Post date:** [February 27, 2020, 3:36pm UTC](https://discuss.elastic.co/t/running-a-kibana-plugin-for-local-development-is-very-slow/220501/6 "2020-02-27T15:36:20Z")

</div>

@Liza_Katz yeah right? I even took care of disabling all malware scanning witchcraft Microsoft enabled by default (I think it's called Defender). And it's super slow from WSL (version 1), and even native Windows CLI (calling yarn from Powershell).

One more thing I noticed, was that even copying the Kibana project to another directory was slow (no change if I used the linux command cp -r kibana kibana\_new from WSL (version1) or the same operation using the native windows file manager GUI).

The thing I did not try is to use WSL2 which uses actual virtualization. Will test it next week and report.

---

<div class="post-metadata">

**Author:** ![mattkime](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkime/32/43522_2.png) [@mattkime](https://discuss.elastic.co/u/mattkime)\
**Post date:** [February 27, 2020, 3:37pm UTC](https://discuss.elastic.co/t/running-a-kibana-plugin-for-local-development-is-very-slow/220501/7 "2020-02-27T15:37:23Z")

</div>

I recently spoke to someone who had good things to say about WSL2 - I should have specified the latest version.

---

<div class="post-metadata">

**Author:** ![Simone\_Scarduzio](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simone_scarduzio/32/17128_2.png) [@Simone\_Scarduzio](https://discuss.elastic.co/u/Simone_Scarduzio)\
**Post date:** [March 6, 2020, 9:37am UTC](https://discuss.elastic.co/t/running-a-kibana-plugin-for-local-development-is-very-slow/220501/8 "2020-03-06T09:37:33Z")

</div>

Just tested Windows 10 with a WSL2 ubuntu 19.10, freshly cloned kibana repository, checkout tag v7.6.1, yarn kbn bootstrap takes 8 minutes.

---

<div class="post-metadata">

**Author:** ![Simone\_Scarduzio](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simone_scarduzio/32/17128_2.png) [@Simone\_Scarduzio](https://discuss.elastic.co/u/Simone_Scarduzio)\
**Post date:** [March 6, 2020, 5:05pm UTC](https://discuss.elastic.co/t/running-a-kibana-plugin-for-local-development-is-very-slow/220501/9 "2020-03-06T17:05:10Z")

</div>

However, this bug made me go back to Linux

> <https://github.com/microsoft/WSL/issues/4498>
>
> Please fill out the below information:
> 
> Your Windows build number: (Type ver at a Windows Command Prompt)
> Microsoft Windows \[Version 10.0.18980.1\]
> 
> What you're doing...

---

<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 3, 2020, 5:05pm UTC](https://discuss.elastic.co/t/running-a-kibana-plugin-for-local-development-is-very-slow/220501/10 "2020-04-03T17:05:13Z")

</div>

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