问题:
2020-09-16 14:07:47 Commons Daemon procrun stdout initialized
Error occurred during initialization of VM
Could not reserve enough space for object heap
解决:
内存不够,要分配内存,找JVM配置文件,从bin目录下elasticsearch文件编辑打开看到:
ES_JVM_OPTIONS="$ES_PATH_CONF"/jvm.options
JVM_OPTIONS=`"$JAVA" -cp "$ES_CLASSPATH" org.elasticsearch.tools.launchers.JvmOptionsParser "$ES_JVM_OPTIONS"`
ES_JAVA_OPTS="${JVM_OPTIONS//\$\{ES_TMPDIR\}/$ES_TMPDIR} $ES_JAVA_OPTS"
es中所有关于JVM配置的信息,都放在了conf下的jvm.options文件中。
在jvm.options文件中看注释发现:
##You should always set the min and max JVM heap
##size to the same value. For example, to set
##the heap to 4 GB, set:
##-Xms4g
##-Xmx4g
按照示例,两个参数大小要一样。
E:\154es\elasticsearch-6.2.4\config目录下的jvm.options中
-Xms1g
-Xmx1g
改为1g即可。