# Elasticsearch service does not start on Windows

**URL:** <https://discuss.elastic.co/t/elasticsearch-service-does-not-start-on-windows/325165>\
**Category:** Elasticsearch\
**Created:** [February 9, 2023, 3:49pm UTC](https://discuss.elastic.co/t/elasticsearch-service-does-not-start-on-windows/325165 "2023-02-09T15:49:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ludovic.denee](https://avatars.discourse-cdn.com/v4/letter/l/919ad9/32.png) [@ludovic.denee](https://discuss.elastic.co/u/ludovic.denee)\
**Post date:** [February 9, 2023, 3:49pm UTC](https://discuss.elastic.co/t/elasticsearch-service-does-not-start-on-windows/325165/1 "2023-02-09T15:49:11Z")

</div>

Hi all,

In the context of an upgrade of Azure DevOps Server from 2020 to 2022, I needed to upgrade the ES service. from 6 to 7.  
Update is ok but impossible to start the service.  
I tried to uninstall and reinstall the service, same behavior.  
In the log of ES, I see this error "java.lang.outofmemoryerror direct buffer memory" but despite a huge amount of post on the subject, I don't see how to fix it.

We are on a Windows Server 2019 with 16GB RAM.

Could you help me? thanks in advance.

Regards

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [February 9, 2023, 9:42pm UTC](https://discuss.elastic.co/t/elasticsearch-service-does-not-start-on-windows/325165/2 "2023-02-09T21:42:28Z")

</div>

Reinstall the service

```auto
elasticsearch-service.bat remove 
elasticsearch-service.bat install

```

outofmemoryerror direct buffer memory - Do you have enough free memory? You should have 50% free.

---

<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 9, 2023, 9:43pm UTC](https://discuss.elastic.co/t/elasticsearch-service-does-not-start-on-windows/325165/3 "2023-03-09T21:43:09Z")

</div>

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