错误1:max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
可以执行以下命令,设置 vm.max_map_count ,但是重启后又会恢复为原值。
sudo sysctl -w vm.max_map_count=262144
持久性的做法是在 /etc/sysctl.conf 文件中修改 vm.max_map_count 参数:
echo "vm.max_map_count=262144" > /etc/sysctl.conf
sysctl -p
错误2:Error occurred during initialization of VM Multiple garbage collectors selected
ES_JAVA_OPTS="-XX:-UseSerialGC"