# Nodes out of memory with completion suggester / ngrams

**URL:** <https://discuss.elastic.co/t/nodes-out-of-memory-with-completion-suggester-ngrams/296907>\
**Category:** Elasticsearch\
**Created:** [February 10, 2022, 10:01pm UTC](https://discuss.elastic.co/t/nodes-out-of-memory-with-completion-suggester-ngrams/296907 "2022-02-10T22:01:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ravib](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ravib/32/73896_2.png) [@ravib](https://discuss.elastic.co/u/ravib)\
**Post date:** [February 10, 2022, 10:01pm UTC](https://discuss.elastic.co/t/nodes-out-of-memory-with-completion-suggester-ngrams/296907/1 "2022-02-10T22:01:32Z")

</div>

Hello,

I am still using Elasticsearch 5.6 version

I have an index with a completion suggest field and also a text field with edge ngram size 3 to 10 [i don't query both of them at the same time]…. so I got few queries which use the completion suggest field and few which use the edge ngram text field

lately I have been seeing memory usage/cpu spike on the nodes with shards from this index ... and these nodes are experiencing out of memory/garbage collection issues.. eventually crashing.

So clearly we are having issues with this index… do y'all think its because I have both completion suggest field and edge ngram field on the same index? [i know it sounds silly] or is it it one of these fields is causing the issue

more info: this index is like 220mb, 56k records with 3 shards one replica… also like 20k requests per hour  
yesterday i updated this to only have one shard instead of three, to see if that helps.

any insight is greatly appreciated! thanks!

---

<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 10, 2022, 10:01pm UTC](https://discuss.elastic.co/t/nodes-out-of-memory-with-completion-suggester-ngrams/296907/2 "2022-02-10T22:01:32Z")

</div>

Elasticsearch 5.6 is [EOL](https://www.elastic.co/support/eol) and no longer supported. Please upgrade ASAP.

(This is an automated response from your friendly Elastic bot. Please report this post if you have any suggestions or concerns :elasticheart: )

---

<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 10, 2022, 10:01pm UTC](https://discuss.elastic.co/t/nodes-out-of-memory-with-completion-suggester-ngrams/296907/3 "2022-03-10T22:01:55Z")

</div>

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