License information could not be obtained from Elasticsearch

I've migrated both ElasticSearch and Kibana to 7.6.1 version and both are working great!
Problem solved. I also install Wazuh for SIEM solution
However, I first tested on Centos 2 core 4GB RAM (VMware) and got this error (JavaScript Out Of Memory)

I fixed it by increase the RAM to 8GB and set options --max-old-space-size=7000 and it worked