参考文章 https://learnku.com/docs/elasticsearch73/7.3/322-secure-settings/6591 配置文件 /etc/elasticsearch/jvm.options
/etc/elasticsearch/jvm.options
开启下面的配置,改为要设置的内存
-Xms10g -Xmx10g