The PC is lagging and stops working when i run app search 8.1.1

I have installed Elasticsearch and Kibana and elastic enterprise-search v8 and installed the tar.gz linux version, currently installed everything on ubuntu 20.04 as a dual boot in my PC with windows, gave it 250go of memory and 8 RAM.
I'm using app search specifically and connected it to Kibana in order to use it, but it keeps lagging and sometimes the whole PC freezes and I can do nothing about it but to shutdown the PC and restart everything.
I don't think the problem is the hardware nor the browser since i use Firefox and it's the most compatible with Ubuntu.
Any ideas about what may be the problem??