# Restarting elasticsearch (via systemctl): Job for elasticsearch.service failed because the control process exited with error code. See "systemctl status elasticsearch.service" and "journalctl -xe" for details

**URL:** <https://discuss.elastic.co/t/restarting-elasticsearch-via-systemctl-job-for-elasticsearch-service-failed-because-the-control-process-exited-with-error-code-see-systemctl-status-elasticsearch-service-and-journalctl-xe-for-details/273137>\
**Category:** Elasticsearch\
**Created:** [May 17, 2021, 7:22am UTC](https://discuss.elastic.co/t/restarting-elasticsearch-via-systemctl-job-for-elasticsearch-service-failed-because-the-control-process-exited-with-error-code-see-systemctl-status-elasticsearch-service-and-journalctl-xe-for-details/273137 "2021-05-17T07:22:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![confidential](https://avatars.discourse-cdn.com/v4/letter/c/ecb155/32.png) [@confidential](https://discuss.elastic.co/u/confidential)\
**Post date:** [May 17, 2021, 7:22am UTC](https://discuss.elastic.co/t/restarting-elasticsearch-via-systemctl-job-for-elasticsearch-service-failed-because-the-control-process-exited-with-error-code-see-systemctl-status-elasticsearch-service-and-journalctl-xe-for-details/273137/1 "2021-05-17T07:22:20Z")

</div>

Restarting elasticsearch (via systemctl): Job for elasticsearch.service failed because the control process exited with error code. See "systemctl status elasticsearch.service" and "journalctl -xe" for details.

```
## JVM configuration

```

################################################################

## IMPORTANT: JVM heap size

################################################################

## 

## 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

## 

## See [Important settings configuration | Elastic Docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/heap-size.html)

## for more information

## 

################################################################

# Xms represents the initial size of total heap space

# Xmx represents the maximum size of total heap space

-Xms512m  
-Xmx512m

################################################################

## Expert settings

################################################################

## 

## All settings below this section are considered

## expert settings. Don't tamper with them unless

## you understand what you are doing

## 

################################################################

## GC configuration

8-13:-XX:+UseConcMarkSweepGC  
8-13:-XX:CMSInitiatingOccupancyFraction=75  
8-13:-XX:+UseCMSInitiatingOccupancyOnly

---

<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:** [May 17, 2021, 7:39am UTC](https://discuss.elastic.co/t/restarting-elasticsearch-via-systemctl-job-for-elasticsearch-service-failed-because-the-control-process-exited-with-error-code-see-systemctl-status-elasticsearch-service-and-journalctl-xe-for-details/273137/2 "2021-05-17T07:39:38Z")

</div>

Welcome to our community! 😃  
Please format your code/logs/config using the `</>` button, or markdown style back ticks. It helps to make things easy to read which helps us help you 🙂

If you are asking for help here, you will need to do more than just post config and errors. More detail is required please

---

<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:** [June 14, 2021, 7:40am UTC](https://discuss.elastic.co/t/restarting-elasticsearch-via-systemctl-job-for-elasticsearch-service-failed-because-the-control-process-exited-with-error-code-see-systemctl-status-elasticsearch-service-and-journalctl-xe-for-details/273137/3 "2021-06-14T07:40:33Z")

</div>

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