# Large synonyms file - Cluster State Exception

**URL:** <https://discuss.elastic.co/t/large-synonyms-file-cluster-state-exception/145075>\
**Category:** Elasticsearch\
**Created:** [August 20, 2018, 12:54am UTC](https://discuss.elastic.co/t/large-synonyms-file-cluster-state-exception/145075 "2018-08-20T00:54:39Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattkallo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkallo/32/109746_2.png) [@mattkallo](https://discuss.elastic.co/u/mattkallo)\
**Post date:** [August 20, 2018, 12:54am UTC](https://discuss.elastic.co/t/large-synonyms-file-cluster-state-exception/145075/1 "2018-08-20T00:54:39Z")

</div>

Hi - Similar issues were discussed earlier by others, however I am unable to resolve this from the solutions mentioned in those discussions. [Recommendation for large synonym file](https://discuss.elastic.co/t/recommendation-for-large-synonym-file/42740)

I have 2 synonyms/phrases files which are 100MB each currently and may increase in size as we add more data.

When I start the ES instance, I get the below exceptions -

> [2018-08-20T06:03:47,450][DEBUG][o.e.a.a.i.e.i.TransportIndicesExistsAction] [tAd08LA] timed out while retrying [indices:admin/exists] after failure (timeout [30s])  
> org.elasticsearch.cluster.block.ClusterBlockException: blocked by: [SERVICE\_UNAVAILABLE/1/state not recovered / initialized];

I have only one node right now, hence its not failing because of any replication of synonyms files between nodes. Won't ES be able to handle 100 or a 300MB synonyms file? What needs to be done to handle this?

---

<div class="post-metadata">

**Author:** ![amaljose123](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amaljose123/32/42205_2.png) [@amaljose123](https://discuss.elastic.co/u/amaljose123)\
**Post date:** [August 21, 2018, 6:56am UTC](https://discuss.elastic.co/t/large-synonyms-file-cluster-state-exception/145075/2 "2018-08-21T06:56:29Z")

</div>

same issue here , in my case i have synonyms file with 1 GB and 512 MB , at the time of starting elasticsearch it gives this logs  
[o.e.m.j.JvmGcMonitorService] [tAd08LA] [gc][369] overhead, spent [1.3s] collecting in the last [2.3s]

and finally terminate with OutOfMemory error ,

---

<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:** [August 21, 2018, 6:58am UTC](https://discuss.elastic.co/t/large-synonyms-file-cluster-state-exception/145075/3 "2018-08-21T06:58:13Z")

</div>

How much heap do you have assigned to the node?

---

<div class="post-metadata">

**Author:** ![amaljose123](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amaljose123/32/42205_2.png) [@amaljose123](https://discuss.elastic.co/u/amaljose123)\
**Post date:** [August 21, 2018, 6:59am UTC](https://discuss.elastic.co/t/large-synonyms-file-cluster-state-exception/145075/4 "2018-08-21T06:59:45Z")

</div>

it is 6gb  
.when i start es with less synonym rules i didn't get any issue , but now it's not even starting

---

<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:** [August 21, 2018, 7:02am UTC](https://discuss.elastic.co/t/large-synonyms-file-cluster-state-exception/145075/5 "2018-08-21T07:02:02Z")

</div>

Have you tried increasing the heap size? I am not sure how much heap such large dictionaries will require, but would not be surprised if processing them will require more than 6GB.

---

<div class="post-metadata">

**Author:** ![amaljose123](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amaljose123/32/42205_2.png) [@amaljose123](https://discuss.elastic.co/u/amaljose123)\
**Post date:** [August 21, 2018, 7:04am UTC](https://discuss.elastic.co/t/large-synonyms-file-cluster-state-exception/145075/6 "2018-08-21T07:04:27Z")

</div>

yeah , it was 2gb before , i increased it upto this one(6Gb) , but still not working

is there any other issues causes this ?any other alternative ways i can take ?

---

<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:** [August 21, 2018, 7:08am UTC](https://discuss.elastic.co/t/large-synonyms-file-cluster-state-exception/145075/7 "2018-08-21T07:08:40Z")

</div>

I do not know, but would probably try with an even larger heap.

---

<div class="post-metadata">

**Author:** ![amaljose123](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amaljose123/32/42205_2.png) [@amaljose123](https://discuss.elastic.co/u/amaljose123)\
**Post date:** [August 21, 2018, 7:09am UTC](https://discuss.elastic.co/t/large-synonyms-file-cluster-state-exception/145075/8 "2018-08-21T07:09:47Z")

</div>

ok thanks for the suggestion

---

<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:** [September 18, 2018, 7:11am UTC](https://discuss.elastic.co/t/large-synonyms-file-cluster-state-exception/145075/9 "2018-09-18T07:11:32Z")

</div>

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