Hi,
My elasticsearch instance was working just fine, I made some changes to elasticsearch.yml file for email setting and restarted service, but elasticsearch failed to start and I could not even connect to elasticsearch using curl on by ubuntu machine it says failed to connect both on localhost and on IP.
I removed changes and restart service but still it failed to start.
elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2020-09-03 19:50:52 PKT; 2min 18s ago
Docs: https://www.elastic.co
Process: 948 ExecStart=/usr/share/elasticsearch/bin/systemd-entrypoint -p ${PID_DIR}/elasticsearch.pid --quiet (code=exited, status=1/F
Main PID: 948 (code=exited, status=1/FAILURE)
ستمبر 03 19:50:52 elk-rewtez systemd-entrypoint[948]: Error: Could not create the Java Virtual Machine.
ستمبر 03 19:50:52 elk-rewtez systemd-entrypoint[948]: Error: A fatal exception has occurred. Program will exit.
ستمبر 03 19:50:52 elk-rewtez systemd-entrypoint[948]: at org.elasticsearch.tools.launchers.JvmErgonomics.flagsFinal(JvmErgonomics
ستمبر 03 19:50:52 elk-rewtez systemd-entrypoint[948]: at org.elasticsearch.tools.launchers.JvmErgonomics.finalJvmOptions(JvmErgon
ستمبر 03 19:50:52 elk-rewtez systemd-entrypoint[948]: at org.elasticsearch.tools.launchers.JvmErgonomics.choose(JvmErgonomics.jav
ستمبر 03 19:50:52 elk-rewtez systemd-entrypoint[948]: at org.elasticsearch.tools.launchers.JvmOptionsParser.jvmOptions(JvmOptions
ستمبر 03 19:50:52 elk-rewtez systemd-entrypoint[948]: at org.elasticsearch.tools.launchers.JvmOptionsParser.main(JvmOptionsParser
ستمبر 03 19:50:52 elk-rewtez systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
ستمبر 03 19:50:52 elk-rewtez systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
ستمبر 03 19:50:52 elk-rewtez systemd[1]: Failed to start Elasticsearch.
can someone help here