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?