# Elastic Search hangs after start on Linux VM

**URL:** https://discuss.elastic.co/t/elastic-search-hangs-after-start-on-linux-vm/164810
**Category:** Elasticsearch
**Created:** [January 18, 2019, 2:35pm UTC](https://discuss.elastic.co/t/elastic-search-hangs-after-start-on-linux-vm/164810 "2019-01-18T14:35:02Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Vishal\_Goel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vishal_goel/32/46581_2.png) [@Vishal\_Goel](https://discuss.elastic.co/u/Vishal_Goel)
#### Post date: [January 18, 2019, 2:35pm UTC](https://discuss.elastic.co/t/elastic-search-hangs-after-start-on-linux-vm/164810/1 "2019-01-18T14:35:03Z")

</div>

Hi,

I am running Elastic Search 6.5.4 on small Linux VM in dev mode. It is started successfully,  
I can access [http://localhost:9200](http://localhost:9200) in browser perfectly.  
But when Kibana is run and it start using ES, ES gets hanged. Now, accessing above URL in browser keeps on spinning. This also happens if I try to put any pipeline or index template using REST call. Basically, it is seeming that after some calls to ES, it starts hanging.  
There are no exceptions in the logs.  
Can you please let me know what can be wrong here?

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [January 18, 2019, 2:37pm UTC](https://discuss.elastic.co/t/elastic-search-hangs-after-start-on-linux-vm/164810/2 "2019-01-18T14:37:14Z")

</div>

How small is the VM? How much heap did you allocate to Elasticsearch?

---

<div class="post-metadata">

### Author: ![Vishal\_Goel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vishal_goel/32/46581_2.png) [@Vishal\_Goel](https://discuss.elastic.co/u/Vishal_Goel)
#### Post date: [January 18, 2019, 2:38pm UTC](https://discuss.elastic.co/t/elastic-search-hangs-after-start-on-linux-vm/164810/3 "2019-01-18T14:38:46Z")

</div>

> [@Vishal\_Goel](#):
>
> I am running Elastic Search 6.5.4 on small Linux VM in dev mode. It is started successfully,  
> I can access [http://localhost:9200](http://localhost:9200) in browser perfectly.  
> But when Kibana is run and it start using ES, ES gets hanged. Now, accessing above URL in browser keeps on spinning. This also happens if I try to put any pipeline or index template using REST call. Basically, it is seeming that after some calls to ES, it starts hanging.  
> There are no exceptions in the logs.  
> Can you please let me know what can be wrong here?

I allocated XMX and XMS both as 512M. VM memory is 4 GB

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [January 18, 2019, 2:46pm UTC](https://discuss.elastic.co/t/elastic-search-hangs-after-start-on-linux-vm/164810/4 "2019-01-18T14:46:07Z")

</div>

What kind of VM is it? How much CPU do you have available? What does `top` show?

---

<div class="post-metadata">

### Author: ![Vishal\_Goel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vishal_goel/32/46581_2.png) [@Vishal\_Goel](https://discuss.elastic.co/u/Vishal_Goel)
#### Post date: [January 18, 2019, 2:49pm UTC](https://discuss.elastic.co/t/elastic-search-hangs-after-start-on-linux-vm/164810/5 "2019-01-18T14:49:43Z")

</div>

TOP showing below for ES process  
PID THR PRI NICE SIZE RES SHR STATE TIME CPU COMMAND  
6285 88 20 0 3338M 226M 34M sleep 0:16 0.80% java  
There is only 1 CPU with Thread(s) per core: 1

---

<div class="post-metadata">

### Author: ![Vishal\_Goel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vishal_goel/32/46581_2.png) [@Vishal\_Goel](https://discuss.elastic.co/u/Vishal_Goel)
#### Post date: [January 18, 2019, 3:05pm UTC](https://discuss.elastic.co/t/elastic-search-hangs-after-start-on-linux-vm/164810/6 "2019-01-18T15:05:32Z")

</div>

I tried it on a good VM and it seems to be working. I think this can be closed as of now.  
Thanks,

---

<div class="post-metadata">

### Author: ![Vishal\_Goel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vishal_goel/32/46581_2.png) [@Vishal\_Goel](https://discuss.elastic.co/u/Vishal_Goel)
#### Post date: [January 18, 2019, 4:12pm UTC](https://discuss.elastic.co/t/elastic-search-hangs-after-start-on-linux-vm/164810/7 "2019-01-18T16:12:36Z")

</div>

@ [Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)  
Coming here again.. now I tried it running on a Linux machine with 12 cores and 6 threads/core. Machine has around 16GB RAM with 8-10GB in use.  
ES started running and I can put pipeline def and index template.  
But filebeat bulk index operation fails with 504 error. And browser also keeps on spinning after some time.

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [January 19, 2019, 7:11pm UTC](https://discuss.elastic.co/t/elastic-search-hangs-after-start-on-linux-vm/164810/8 "2019-01-19T19:11:32Z")

</div>

Please show the full error as well as your config.

---

<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: [February 16, 2019, 7:11pm UTC](https://discuss.elastic.co/t/elastic-search-hangs-after-start-on-linux-vm/164810/9 "2019-02-16T19:11:35Z")

</div>

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