# Failed to start Elasticsearch in AlmaLinux

**URL:** <https://discuss.elastic.co/t/failed-to-start-elasticsearch-in-almalinux/295995>\
**Category:** Elasticsearch\
**Created:** [February 1, 2022, 8:02pm UTC](https://discuss.elastic.co/t/failed-to-start-elasticsearch-in-almalinux/295995 "2022-02-01T20:02:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MBekhit](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mbekhit/32/101193_2.png) [@MBekhit](https://discuss.elastic.co/u/MBekhit)\
**Post date:** [February 1, 2022, 8:02pm UTC](https://discuss.elastic.co/t/failed-to-start-elasticsearch-in-almalinux/295995/1 "2022-02-01T20:02:02Z")

</div>

Elasticsearch stopped working and this is a error log

```auto
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.

```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 1, 2022, 8:24pm UTC](https://discuss.elastic.co/t/failed-to-start-elasticsearch-in-almalinux/295995/2 "2022-02-01T20:24:07Z")

</div>

Welcome to our community! 😃

> [@MBekhit](#):
>
> ```auto
> 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]
> 
> ```

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 1, 2022, 8:24pm UTC](https://discuss.elastic.co/t/failed-to-start-elasticsearch-in-almalinux/295995/3 "2022-03-01T20:24:24Z")

</div>

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