Hello. I was trying to do rolling update data node from 7.6.2 to 7.10.0 on Ubuntu 18.04.
I followed the instructions:
but after the update Elasticsearch can't start with next outputs:
Dec 03 17:15:21 test-es-data-05 systemd-entrypoint[1221]: Error: Could not create the Java Virtual Machine.
Dec 03 17:15:21 test-es-data-05 systemd-entrypoint[1221]: Error: A fatal exception has occurred. Program will exit.
Dec 03 17:15:21 test-es-data-05 systemd-entrypoint[1221]: at org.elasticsearch.tools.launchers.JvmErgonomics.flagsFinal(JvmErgonomics.java:126)
Dec 03 17:15:21 test-es-data-05 systemd-entrypoint[1221]: at org.elasticsearch.tools.launchers.JvmErgonomics.finalJvmOptions(JvmErgonomics.java:88)
Dec 03 17:15:21 test-es-data-05 systemd-entrypoint[1221]: at org.elasticsearch.tools.launchers.JvmErgonomics.choose(JvmErgonomics.java:59)
Dec 03 17:15:21 test-es-data-05 systemd-entrypoint[1221]: at org.elasticsearch.tools.launchers.JvmOptionsParser.jvmOptions(JvmOptionsParser.java:137)
Dec 03 17:15:21 test-es-data-05 systemd-entrypoint[1221]: at org.elasticsearch.tools.launchers.JvmOptionsParser.main(JvmOptionsParser.java:95)
Dec 03 17:15:21 test-es-data-05 systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
Dec 03 17:15:21 test-es-data-05 systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
Dec 03 17:15:21 test-es-data-05 systemd[1]: Failed to start Elasticsearch.
after updating Elasticsearch I also updated jvm.options
based on clear 7.10.0 version, here:
-Xms16069m
-Xmx16069m
8-13:-XX:+UseConcMarkSweepGC
8-13:-XX:CMSInitiatingOccupancyFraction=75
8-13:-XX:+UseCMSInitiatingOccupancyOnly
14-:-XX:+UseG1GC
14-:-XX:G1ReservePercent=25
14-:-XX:InitiatingHeapOccupancyPercent=30
-Djava.io.tmpdir=${ES_TMPDIR}
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=/var/lib/elasticsearch
-XX:ErrorFile=/var/log/elasticsearch/hs_err_pid%p.log
8:-XX:+PrintGCDetails
8:-XX:+PrintGCDateStamps
8:-XX:+PrintTenuringDistribution
8:-XX:+PrintGCApplicationStoppedTime
8:-Xloggc:/var/log/elasticsearch/gc.log
8:-XX:+UseGCLogFileRotation
8:-XX:NumberOfGCLogFiles=32
8:-XX:GCLogFileSize=64m
9-:-Xlog:gc*,gc+age=trace,safepoint:file=/var/log/elasticsearch/gc.log:utctime,pid,tags:filecount=32,filesize=64m
JDK updated succesfully:
/usr/share/elasticsearch/jdk/bin/java -version
openjdk version "15.0.1" 2020-10-20
OpenJDK Runtime Environment AdoptOpenJDK (build 15.0.1+9)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 15.0.1+9, mixed mode, sharing)
So, how can i debug this issue or to which version should I update?