Skip to content

ES 5.2.2 Heap spikes on aggregations, causing OOM #24215

@vineet01

Description

@vineet01

The issue is similar to the one reported in #23868.

Tested on oracle JDK 1.8.0_112, 1.8.0_91 with mock data loaded in both 2.3.3 and 5.2.2 clusters running on the same system.
Mappings and doc counts are exactly same for both instances. (62K docs).

Aggregations are being performed on raw fields which are not_analyzed.

Configuration:

  • 4GB Max heap size.
  • indices.breaker.request.limit: 40%
  • Default CMS settings.
  • No extra plugins.

Screenshot of Kibana with a visualization which I tested with. (sole purpose of this visualization is to compare performance b/w 2.3.3 and 5.2.2):

https://www.dropbox.com/s/rl5sfucdmo006pe/kibana_es2.3.3.png?dl=0
https://www.dropbox.com/s/r5cqwe19abz3g92/kibana_es5.2.2.png?dl=0

53 MB bzipped heap dump can be downloaded @ https://www.dropbox.com/s/os0bgn4nuq7ra7z/java_pid18280.hprof.bz2?dl=0.

Exception:

Caused by: org.elasticsearch.common.breaker.CircuitBreakingException: [request] Data too large, data for [<reused_arrays>] would be larger than limit of [1704040857/1.5gb]

Also on the same note, I will like to share that reducing precision_threshold improves this behaviour, I was able to successfully get results on the same with -> {"precision_threshold":1}.

Please review.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions