elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
1.39k stars 24.87k forks source link

Large field caps requests can cause memory pressure in smaller heaps #110130

Open benwtrent opened 5 months ago

benwtrent commented 5 months ago

Description

When using a smaller heap, and gathering a large number of field caps, the memory pressure can be pretty large.

For example, some of the smaller heap sizes seen are < 1GB in size, but its possible for a field-caps response to use more than 200MB. One API request taking >20% of heap can cause issues.

This issue is to track two possible things:

These are rather, ambitious and potentially ambiguous questions. Opening this issue for potential discussion.

elasticsearchmachine commented 5 months ago

Pinging @elastic/es-search (Team:Search)

AfshanAlamEngg commented 4 months ago

Hi, how can generate this issue on our own machine?

elasticsearchmachine commented 4 months ago

Pinging @elastic/es-search-foundations (Team:Search Foundations)