-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Percolator: High memory usage issue when nested query is registered #24108
Comments
@anatoly21 Just double checking: So after registering a single percolator query that has a |
Yes, this issue occurs after registerering a single nested query. The attached pictures show results after execution of about 300 000 search requests (percolate queries). |
@anatoly21 Thanks, are the search requests (with |
Thanks for reporting @anatoly21 and this is indeed a bad bug. This problem is quite easily reproducible and affects all 5.x releases. Prior to 5.0 the percolator had its own search context (PercolateContext), which always closed the readers of the in-memory index. I'll work on a fix. The percolator should just never use the |
Thank you. |
…a cache. The percolator doesn't close the IndexReader of the memory index any more. Prior to 2.x the percolator had its own SearchContext (PercolatorContext) that did this, but that was removed when the percolator was refactored as part of the 5.0 release. I think an alternative way to fix this is to let percolator not use the bitset and fielddata caches, that way we prevent the memory leak. Closes #24108
…a cache. The percolator doesn't close the IndexReader of the memory index any more. Prior to 2.x the percolator had its own SearchContext (PercolatorContext) that did this, but that was removed when the percolator was refactored as part of the 5.0 release. I think an alternative way to fix this is to let percolator not use the bitset and fielddata caches, that way we prevent the memory leak. Closes #24108
ES version: 5.2.2.
JDK: 1.8.0_65
OS version: Ubuntu 14.04.4
We faced high memory usage issue when using percolator.
Dedicated index is configured for percolator.
It works as expected and JVM heap usage picture is
After registering a nested nested query the picture changes and there is a steady grow of used memory and CPU on the same input document set
Input documents contain up to hundred of nested documents. Caching settings are by default.
Memory dump:
The text was updated successfully, but these errors were encountered: