# Creating Index Hangs

**URL:** <https://discuss.elastic.co/t/creating-index-hangs/1124>\
**Category:** Elasticsearch\
**Created:** [May 21, 2015, 5:57pm UTC](https://discuss.elastic.co/t/creating-index-hangs/1124 "2015-05-21T17:57:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phil\_Burress](https://avatars.discourse-cdn.com/v4/letter/p/59ef9b/32.png) [@Phil\_Burress](https://discuss.elastic.co/u/Phil_Burress)\
**Post date:** [May 21, 2015, 5:57pm UTC](https://discuss.elastic.co/t/creating-index-hangs/1124/1 "2015-05-21T17:57:35Z")

</div>

I'm attempting to create an index using code as follows:

```
client.admin().indices().prepareCreate("myindex").execute().actionGet();

```

However, it hangs on this line and eventually the JVM runs out of memory and dies.

Any suggestions on how to debug why this is happening?

---

<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 21, 2015, 10:15pm UTC](https://discuss.elastic.co/t/creating-index-hangs/1124/2 "2015-05-21T22:15:40Z")

</div>

Anything in the ES logs?

---

<div class="post-metadata">

**Author:** ![Phil\_Burress](https://avatars.discourse-cdn.com/v4/letter/p/59ef9b/32.png) [@Phil\_Burress](https://discuss.elastic.co/u/Phil_Burress)\
**Post date:** [May 22, 2015, 1:16am UTC](https://discuss.elastic.co/t/creating-index-hangs/1124/3 "2015-05-22T01:16:32Z")

</div>

Unfortunately, no. I have a log statement immediately before which I see in the logs. I also have one directly after the statement, but it never gets called. Interestingly enough, in trying a few things, I tried adding this before the create statement:

```
IndicesExistsResponse res = client.admin().indices().prepareExists("myindex").get();

```

It also hangs.

Could there be a configuration setting that would potentially cause this?

---

<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:** [July 6, 2017, 12:12am UTC](https://discuss.elastic.co/t/creating-index-hangs/1124/4 "2017-07-06T00:12:30Z")

</div>


