# My ubuntu 16gb ram machine getting stuck after starting elasticsearch

**URL:** <https://discuss.elastic.co/t/my-ubuntu-16gb-ram-machine-getting-stuck-after-starting-elasticsearch/332509>\
**Category:** Elasticsearch\
**Created:** [May 4, 2023, 7:47am UTC](https://discuss.elastic.co/t/my-ubuntu-16gb-ram-machine-getting-stuck-after-starting-elasticsearch/332509 "2023-05-04T07:47:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krishna\_Sai\_Nag\_G](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krishna_sai_nag_g/32/80467_2.png) [@Krishna\_Sai\_Nag\_G](https://discuss.elastic.co/u/Krishna_Sai_Nag_G)\
**Post date:** [May 4, 2023, 7:47am UTC](https://discuss.elastic.co/t/my-ubuntu-16gb-ram-machine-getting-stuck-after-starting-elasticsearch/332509/1 "2023-05-04T07:47:35Z")

</div>

My ubuntu 16gb ram machine getting stuck after starting elasticsearch

I have seen this in google when checking for it and i have added

in /etc/elasticsearch/jvm.options.d/  
in that folder i have created one file with jvm.options and added this lines  
-Xms4g  
-Xmx4g

After adding this also same thing is happening. Machine is getting stuck.

---

<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 4, 2023, 11:40pm UTC](https://discuss.elastic.co/t/my-ubuntu-16gb-ram-machine-getting-stuck-after-starting-elasticsearch/332509/2 "2023-05-04T23:40:20Z")

</div>

> [@Krishna\_Sai\_Nag\_G](#):
>
> Machine is getting stuck.

What do you mean by this?

---

<div class="post-metadata">

**Author:** ![Krishna\_Sai\_Nag\_G](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krishna_sai_nag_g/32/80467_2.png) [@Krishna\_Sai\_Nag\_G](https://discuss.elastic.co/u/Krishna_Sai_Nag_G)\
**Post date:** [May 5, 2023, 5:26am UTC](https://discuss.elastic.co/t/my-ubuntu-16gb-ram-machine-getting-stuck-after-starting-elasticsearch/332509/3 "2023-05-05T05:26:59Z")

</div>

machine is not responding,  
when i search in google, i have seen some documentation related to this.  
-Xms4g  
-Xmx4g  
If we add this code, it limits the elasticsearch to use 4gb of ram. but it is not working.

---

<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 2, 2023, 5:27am UTC](https://discuss.elastic.co/t/my-ubuntu-16gb-ram-machine-getting-stuck-after-starting-elasticsearch/332509/4 "2023-06-02T05:27:29Z")

</div>

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