Kibana 6.2.4 on Windows hangs & fails during plugin installation: "Optimizing and caching browser bundles"

(BradVido) #1

On Windows, I execute this:
J:\elastic\kibana>bin\kibana-plugin.bat install x-pack

After about 15 minutes, I get this error
Transferring 4942599 bytes....................
Transfer complete
Retrieving metadata from plugin archive
Extracting plugin archive
Extraction complete
Optimizing and caching browser bundles... <--Stalls here for a long time

<--- Last few GCs --->

 6705195 ms: Mark-sweep 5773.7 (8037.4) -> 5773.7 (8037.4) MB, 15320.1 / 0.0 ms [allocation failure] [scavenge might not succeed].
 6720227 ms: Mark-sweep 5773.7 (8037.4) -> 5773.7 (8037.4) MB, 15030.3 / 0.0 ms [allocation failure] [scavenge might not succeed].
 6735706 ms: Mark-sweep 5773.7 (8037.4) -> 5790.5 (8020.4) MB, 15476.5 / 0.0 ms [last resort gc].
 6750836 ms: Mark-sweep 5790.5 (8020.4) -> 5808.1 (8019.4) MB, 15129.0 / 0.0 ms [last resort gc].

<--- JS stacktrace --->

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

I have executed this command before running the kibana-plugin.bat file:
set NODE_OPTIONS=--max-old-space-size=4096

But still get the same error.

How can this be fixed?

(Chris Davies) #2

Interesting. Fifteen minutes is quite a long time. The optimizer usually completes in less than a minute, but of course it is dependent on your machine's capabilities.

How much RAM does the machine in question have?

(Chris Davies) #3

One other thing I should note is that x-pack comes bundled in 6.3 (which should come out in 8 days or so). So, you should be able to bypass the install step and that might get you up and working without necessary tinkering.

(BradVido) #4

Thanks for the tip, but this optimization step happens with the install of every plugin, not just x-pack.
It hangs for every plugin.

The machine has 32GB of RAM and SSD. It performs very well of all other aspects.

(system) #5

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