Azure Bitnami Kibana x-pack installation is not working and hangs

I have a bitnami vm created on azure and I have installed x-pack on elasticsearch. While installing x-pack on kibana, it always get stuck on

Optimizing and caching browser bundles

Here is the memory snapshot taken using HTOP

I have added following line in /bin/kibana script

NODE_OPTIONS="${NODE_OPTIONS:=--max-old-space-size=250}"

It actually worked.. I restarted the VM and waited for some time (more than 30 mins).

NODE_OPTIONS="${NODE_OPTIONS:=--max-old-space-size=250}" did the trick for me

Please refer to

Thanks to the community..keep up the good work