# 5.x Percolator memory/cache issue

**URL:** https://discuss.elastic.co/t/5-x-percolator-memory-cache-issue/83892
**Category:** Elasticsearch
**Created:** [April 27, 2017, 3:27pm UTC](https://discuss.elastic.co/t/5-x-percolator-memory-cache-issue/83892 "2017-04-27T15:27:49Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![ymetelkin](https://avatars.discourse-cdn.com/v4/letter/y/c4cdca/32.png) [@ymetelkin](https://discuss.elastic.co/u/ymetelkin)
#### Post date: [April 27, 2017, 3:27pm UTC](https://discuss.elastic.co/t/5-x-percolator-memory-cache-issue/83892/1 "2017-04-27T15:27:49Z")

</div>

Hi,

While testing 5.x percolator we ran into serious performance problems when percolating of a single document could take up to 30 seconds instead of usual 200 ms. Our test is sending documents to percolate in infinite loop. Once ES service is restarted the percolating is taking around 200 ms on average; after a few hours (could be an hour, could be 3-4) it starts to slow down and becomes very slow very quickly. Restarting ES service or executing /\_cache/clear command fixes this problem. Please advice on what we are doing wrong.

Thank you,

Yuri

---

<div class="post-metadata">

### Author: ![mvg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mvg/32/98890_2.png) [@mvg](https://discuss.elastic.co/u/mvg)
#### Post date: [April 28, 2017, 9:16am UTC](https://discuss.elastic.co/t/5-x-percolator-memory-cache-issue/83892/2 "2017-04-28T09:16:37Z")

</div>

@ymetelkin Are you by any chance percolator document that have a nested field? If so you may have ran into this bug [1] which has been fixed [2]

1: [https://github.com/elastic/elasticsearch/issues/24108](https://github.com/elastic/elasticsearch/issues/24108)  
2: [https://github.com/elastic/elasticsearch/pull/24115](https://github.com/elastic/elasticsearch/pull/24115)

---

<div class="post-metadata">

### Author: ![ymetelkin](https://avatars.discourse-cdn.com/v4/letter/y/c4cdca/32.png) [@ymetelkin](https://discuss.elastic.co/u/ymetelkin)
#### Post date: [April 28, 2017, 3:00pm UTC](https://discuss.elastic.co/t/5-x-percolator-memory-cache-issue/83892/3 "2017-04-28T15:00:12Z")

</div>

We building ES from repositories, the version in question is 5.3.1. What version is it fixed in? And yes, we are using nested queries.

---

<div class="post-metadata">

### Author: ![mvg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mvg/32/98890_2.png) [@mvg](https://discuss.elastic.co/u/mvg)
#### Post date: [April 28, 2017, 3:03pm UTC](https://discuss.elastic.co/t/5-x-percolator-memory-cache-issue/83892/4 "2017-04-28T15:03:59Z")

</div>

The fix is included in the upcoming 5.4 release.

---

<div class="post-metadata">

### Author: ![ymetelkin](https://avatars.discourse-cdn.com/v4/letter/y/c4cdca/32.png) [@ymetelkin](https://discuss.elastic.co/u/ymetelkin)
#### Post date: [April 28, 2017, 3:49pm UTC](https://discuss.elastic.co/t/5-x-percolator-memory-cache-issue/83892/5 "2017-04-28T15:49:44Z")

</div>

Thank you. Any idea when it is going to be available?

---

<div class="post-metadata">

### Author: ![mvg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mvg/32/98890_2.png) [@mvg](https://discuss.elastic.co/u/mvg)
#### Post date: [April 28, 2017, 10:48pm UTC](https://discuss.elastic.co/t/5-x-percolator-memory-cache-issue/83892/6 "2017-04-28T22:48:25Z")

</div>

I can't provide a specific date, but it is planned to be released soon. I would say within 2 weeks.

---

<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 26, 2017, 10:53pm UTC](https://discuss.elastic.co/t/5-x-percolator-memory-cache-issue/83892/7 "2017-05-26T22:53:26Z")

</div>

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