Failed to start Elasticsearch in AlmaLinux

Elasticsearch stopped working and this is a error log

Feb  1 20:17:25 server33 systemd[1]: Starting Elasticsearch...
Feb  1 20:17:30 server33 systemd-entrypoint[93293]: encountered [2] errors parsing [/etc/elasticsearch/jvm.options]
Feb  1 20:17:30 server33 systemd-entrypoint[93293]: [1]: encountered improperly formatted JVM option in [/etc/elasticsearch/jvm.options] on line number [31]: [ -Xms4g]
Feb  1 20:17:30 server33 systemd-entrypoint[93293]: [2]: encountered improperly formatted JVM option in [/etc/elasticsearch/jvm.options] on line number [32]: [ -Xmx4g]
Feb  1 20:17:30 server33 systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
Feb  1 20:17:30 server33 systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
Feb  1 20:17:30 server33 systemd[1]: Failed to start Elasticsearch.

Welcome to our community! :smiley:

That would be the best place to start, so what does that file contain?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.