Skip to content

Elastic Coordination nodes dead due to heap memory  #55618

Closed
@alogishetty

Description

@alogishetty

Elasticsearch version (bin/elasticsearch --version): 7.5.2

Plugins installed: []

JVM version (java -version):

OS version (uname -a if on a Unix-like system): CentOS

Description of the problem including expected versus actual behavior: 2 coordination nodes part of elastic search cluster dead with 3 mins apart due to Heap memory

Heap Memory: 16GB
Server Ram: 32GB

We upgraded to 7.5.2, 2 weeks ago. We started with 7.3.2 last year, but we haven't faced any issue like this. We would like to get more information on why this happened.

Steps to reproduce:

Please include a minimal but complete recreation of the problem, including
(e.g.) index creation, mappings, settings, query etc. The easier you make for
us to reproduce it, the more likely that somebody will take the time to look at it.

Provide logs (if relevant):

"json": {
      "component": "o.e.b.ElasticsearchUncaughtExceptionHandler",
      "cluster.uuid": "eUfRAIpMTviuB5jLJN6d7w",
      "stacktrace": [
        "java.lang.OutOfMemoryError: Java heap space",
        "at org.elasticsearch.common.util.BigArrays.newByteArray(BigArrays.java:472) ~[elasticsearch-7.5.2.jar:7.5.2]",
        "at org.elasticsearch.common.util.BigArrays.newByteArray(BigArrays.java:481) ~[elasticsearch-7.5.2.jar:7.5.2]",
        "at org.elasticsearch.search.aggregations.metrics.HyperLogLogPlusPlus.<init>(HyperLogLogPlusPlus.java:772) ~[elasticsearch-7.5.2.jar:7.5.2]",
        "at org.elasticsearch.search.aggregations.metrics.HyperLogLogPlusPlus.readFrom(HyperLogLogPlusPlus.java:1171) ~[elasticsearch-7.5.2.jar:7.5.2]",
        "at org.elasticsearch.search.aggregations.metrics.InternalCardinality.<init>(InternalCardinality.java:51) ~[elasticsearch-7.5.2.jar:7.5.2]",
        "at org.elasticsearch.search.SearchModule$$Lambda$1534/0x0000000801125c40.read(Unknown Source) ~[?:?]",
        "at org.elasticsearch.common.io.stream.NamedWriteableAwareStreamInput.readNamedWriteable(NamedWriteableAwareStreamInput.java:46) ~[elasticsearch-7.5.2.jar:7.5.2]",
        "at org.elasticsearch.common.io.stream.NamedWriteableAwareStreamInput.readNamedWriteable(NamedWriteableAwareStreamInput.java:39) ~[elasticsearch-7.5.2.jar:7.5.2]",
        "at org.elasticsearch.search.aggregations.InternalAggregations.lambda$new$1(InternalAggregations.java:74) ~[elasticsearch-7.5.2.jar:7.5.2]",
        "at org.elasticsearch.search.aggregations.InternalAggregations$$Lambda$4065/0x00000008017dfc40.read(Unknown Source) ~[?:?]",
        "at org.elasticsearch.common.io.stream.StreamInput.readCollection(StreamInput.java:1167) ~[elasticsearch-7.5.2.jar:7.5.2]",
        "at org.elasticsearch.common.io.stream.StreamInput.readList(StreamInput.java:1134) ~[elasticsearch-7.5.2.jar:7.5.2]",
        "at org.elasticsearch.search.aggregations.InternalAggregations.<init>(InternalAggregations.java:74) ~[elasticsearch-7.5.2.jar:7.5.2]",
        "at org.elasticsearch.search.aggregations.bucket.composite.InternalComposite$InternalBucket.<init>(InternalComposite.java:270) ~[elasticsearch-7.5.2.jar:7.5.2]",
        "at org.elasticsearch.search.aggregations.bucket.composite.InternalComposite.lambda$new$0(InternalComposite.java:82) ~[elasticsearch-7.5.2.jar:7.5.2]",
        "at org.elasticsearch.search.aggregations.bucket.composite.InternalComposite$$Lambda$4458/0x000000080189c440.read(Unknown Source) ~[?:?]",
        "at org.elasticsearch.common.io.stream.StreamInput.readCollection(StreamInput.java:1167) ~[elasticsearch-7.5.2.jar:7.5.2]",
        "at org.elasticsearch.common.io.stream.StreamInput.readList(StreamInput.java:1134) ~[elasticsearch-7.5.2.jar:7.5.2]",
        "at org.elasticsearch.search.aggregations.bucket.composite.InternalComposite.<init>(InternalComposite.java:82) ~[elasticsearch-7.5.2.jar:7.5.2]",
        "at org.elasticsearch.search.SearchModule$$Lambda$1680/0x0000000801178c40.read(Unknown Source) ~[?:?]",
        "at org.elasticsearch.common.io.stream.NamedWriteableAwareStreamInput.readNamedWriteable(NamedWriteableAwareStreamInput.java:46) ~[elasticsearch-7.5.2.jar:7.5.2]",
        "at org.elasticsearch.common.io.stream.NamedWriteableAwareStreamInput.readNamedWriteable(NamedWriteableAwareStreamInput.java:39) ~[elasticsearch-7.5.2.jar:7.5.2]",
        "at org.elasticsearch.search.aggregations.InternalAggregations.lambda$new$1(InternalAggregations.java:74) ~[elasticsearch-7.5.2.jar:7.5.2]",
        "at org.elasticsearch.search.aggregations.InternalAggregations$$Lambda$4065/0x00000008017dfc40.read(Unknown Source) ~[?:?]",
        "at org.elasticsearch.common.io.stream.StreamInput.readCollection(StreamInput.java:1167) ~[elasticsearch-7.5.2.jar:7.5.2]",
        "at org.elasticsearch.common.io.stream.StreamInput.readList(StreamInput.java:1134) ~[elasticsearch-7.5.2.jar:7.5.2]",
        "at org.elasticsearch.search.aggregations.InternalAggregations.<init>(InternalAggregations.java:74) ~[elasticsearch-7.5.2.jar:7.5.2]",
        "at org.elasticsearch.search.query.QuerySearchResult.readFromWithId(QuerySearchResult.java:276) ~[elasticsearch-7.5.2.jar:7.5.2]",
        "at org.elasticsearch.search.query.QuerySearchResult.<init>(QuerySearchResult.java:72) ~[elasticsearch-7.5.2.jar:7.5.2]",
        "at org.elasticsearch.action.search.SearchTransportService$$Lambda$4115/0x00000008017fe440.read(Unknown Source) ~[?:?]",
        "at org.elasticsearch.action.ActionListenerResponseHandler.read(ActionListenerResponseHandler.java:69) ~[elasticsearch-7.5.2.jar:7.5.2]",
        "at org.elasticsearch.action.ActionListenerResponseHandler.read(ActionListenerResponseHandler.java:36) ~[elasticsearch-7.5.2.jar:7.5.2]"
      ],
      "node.id": "2TAdJcnET-OpGygqlvqUKQ",
      "timestamp": "2020-04-21T16:56:42,090-05:00",
      "message": "fatal error in thread [Thread-4], exiting",
      "level": "ERROR",
      "type": "server"
    }

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions