# Fielddata вызывает блокировку записи в кластер (сжирает весь HEAP)

**URL:** <https://discuss.elastic.co/t/fielddata-heap/178951>\
**Category:** Вопросы на русском языке\
**Created:** [April 29, 2019, 1:58pm UTC](https://discuss.elastic.co/t/fielddata-heap/178951 "2019-04-29T13:58:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ep4sh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ep4sh/32/40099_2.png) [@ep4sh](https://discuss.elastic.co/u/ep4sh)\
**Post date:** [April 29, 2019, 1:58pm UTC](https://discuss.elastic.co/t/fielddata-heap/178951/1 "2019-04-29T13:58:16Z")

</div>

```
id host ip node field size
z5D-Da3PRE6Sp2XSsfAOuw x.x.x.x x.x.x.x z5D-Da3 _id 2.1gb
mstzEbirQy2nJpEKSAFHwQ x.x.x.x x.x.x.x mstzEbi _id 2gb
70ZCoynITjqp51ypGCeVMA x.x.x.x x.x.x.x 70ZCoyn _id 2gb
DPYg4ehkSSCeXs65GVKBsQ x.x.x.x x.x.x.x DPYg4eh _id 1.9gb
WVZFGbIgSEqUcgE8hrOKQw x.x.x.x x.x.x.x WVZFGbI _id 1.3gb
DPYg4ehkSSCeXs65GVKBsQ x.x.x.x x.x.x.x DPYg4eh transactionId 266.1mb
mstzEbirQy2nJpEKSAFHwQ x.x.x.x x.x.x.x mstzEbi transactionId 219.1mb
70ZCoynITjqp51ypGCeVMA x.x.x.x x.x.x.x 70ZCoyn transactionId 218.5mb

```

Fieldata отжирает память под 80-95%, в следствии чего блокируется запись в кластер (триггер по 90% заполнянию HEAP).

Событие возникает иногда, видимо кто-то запускает поиск / сортировки / агрегации по `_id` полям, но из-за нашей распределнной структуры пользователей я не могу предположить кто делает это.

Можно ли отследить индексы или лучше целые запросы, которые могу включать подобное поведение?

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [April 29, 2019, 2:45pm UTC](https://discuss.elastic.co/t/fielddata-heap/178951/2 "2019-04-29T14:45:25Z")

</div>

Можно временно включить [search slow log](https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-slowlog.html#search-slow-log) и поставить время исполнения в 0ms - туда будут сваливать все запросы, которые потом можно будет посмотреть.

---

<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:** [May 27, 2019, 2:45pm UTC](https://discuss.elastic.co/t/fielddata-heap/178951/3 "2019-05-27T14:45:31Z")

</div>

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