Hello everyone,
We are having out of memory issue for the elasticsearch data nodes? Can you please help me out to find the issue.
Here is log from elasticsearch cluster.
[2023-02-17 10:02:47,551][WARN ][netty.channel.socket.nio.AbstractNioSelector] Unexpected exception in the selector loop.
at org.elasticsearch.search.sort.SortParseElement.addSortField(SortParseElement.java:213)
at org.elasticsearch.search.sort.SortParseElement.addCompoundSortField(SortParseElement.java:187) at org.elasticsearch.search.sort.SortParseElement.parse(SortParseElement.java:95)
at org.elasticsearch.search.SearchService.parseSource(SearchService.java:838)
... 12 more
[2023-02-17 06:35:35,197][DEBUG][action.search ] [dn8] All shards failed for phase: [query]
: {"excludes": , "includes": ["ingdt"]}, "from": 0, "size": 1}]]; nested: SearchParseException[No mapping found for [ingdt] in order to sort on];[{"sort": {"ingdt": {"order": "desc"}}, "query": {"boolseException[No mapping found for [ingdt] in order to sort on];[{"sort": {"ingdt": {"order": "desc"}}, "query"at org.elasticsearch.search.SearchService.parseSource(SearchService.java:855)es": ["ingdt"]}, "from":at org.elasticsearch.search.SearchService.createContext(SearchService.java:654)
at org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:620)
at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:371)
at org.elasticsearch.search.action.SearchServiceTransportAction$SearchQueryTransportHandler.messageReat org.elasticsearch.search.action.SearchServiceTransportAction$SearchQueryTransportHandler.messageReat org.elasticsearch.transport.TransportRequestHandler.messageReceived(TransportRequestHandler.java:3at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.jat org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.doRun(MessageChannelHandlerat org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: SearchParseException[No mapping found for [ingdt] in order to sort on]
at org.elasticsearch.search.sort.SortParseElement.addCompoundSortField(SortParseElement.java:187) ... 12 moreticsearch.search.SearchService.parseSource(SearchService.java:838):95)
[2023-02-17 10:00:11,868][INFO ][monitor.jvm ] [dn8] [gc][old][157114][139] duration [6.9s], collections [1]/[7.4s], total [6.9s]/[6.3m], memory [12.4gb]->[9gb]/[31.8gb], all_pools {[young]8.1mb]->[0b]/[108.1mb]}{[old] [12.3gb]->[8.9gb]/[30.9gb]}
[2023-02-17 10:00:28,157][INFO ][monitor.jvm ] [dn8] [gc][old][157121][140] duration [9.2s], collections [1]/[9.9s], total [9.2s]/[6.4m], memory [28.9gb]->[31.1gb]/[31.8gb], all_pools {[you] [108.1mb]->[0b]/[108.1mb]}{[old] [28.6gb]->[30.9gb]/[30.9gb]}
[2023-02-17 10:00:36,278][INFO ][monitor.jvm ] [dn8] [gc][old][157122][141] duration [8s], collections [1]/[8.1s], total [8s]/[6.6m], memory [31.1gb]->[31.6gb]/[31.8gb], all_pools {[young] b]->[0b]/[108.1mb]}{[old] [30.9gb]->[30.9gb]/[30.9gb]}
[2023-02-17 10:00:44,582][INFO ][monitor.jvm ] [dn8] [gc][old][157123][142] duration [8.2s], collections [1]/[8.3s], total [8.2s]/[6.7m], memory [31.6gb]->[31.8gb]/[31.8gb], all_pools {[youor] [0b]->[69.5mb]/[108.1mb]}{[old] [30.9gb]->[30.9gb]/[30.9gb]}
[2023-02-17 10:02:47,551][WARN ][netty.channel.socket.nio.AbstractNioSelector] Unexpected exception in the selector loop.
java.lang.OutOfMemoryError: Java heap space
[2023-02-17 10:04:13,535][WARN ][netty.channel.socket.nio.AbstractNioSelector] Unexpected exception in the selector loop.
java.lang.OutOfMemoryError: Java heap space
[2023-02-17 10:02:54,144][WARN ][netty.channel.socket.nio.AbstractNioSelector] Unexpected exception in the selector loop.
java.lang.OutOfMemoryError: Java heap space
[2023-02-17 10:02:47,551][WARN ][netty.channel.socket.nio.AbstractNioSelector] Unexpected exception in the selector loop.
.2s], collections [1]/[9.9s], total [9.2s]/[6.4m], memory [28.9gb]->[31.1gb]/[31.8gb], all_pools {[young] [187.3mb]->[177mb]/[865.3mb]}{[survivor] [108.1mb]->[0b]/[108.1mb]}{[old] [28.6gb]->[30.9gb]/[30.9gb]}
[2023-02-17 10:00:36,278][INFO ][monitor.jvm ] [dn8] [gc][old][157122][141] duration [8s], collections [1]/[8.1s], total [8s]/[6.6m], memory [31.1gb]->[31.6gb]/[31.8gb], all_pools {[young] [177mb]->[740.2mb]/[865.3mb]}{[survivor] [0b]->[0b]/[108.1mb]}{[old] [30.9gb]->[30.9gb]/[30.9gb]}
[2023-02-17 10:00:44,582][INFO ][monitor.jvm ] [dn8] [gc][old][157123][142] duration [8.2s], collections [1]/[8.3s], total [8.2s]/[6.7m], memory [31.6gb]->[31.8gb]/[31.8gb], all_pools {[young] [740.2mb]->[865.3mb]/[865.3mb]}{[survivor] [0b]->[69.5mb]/[108.1mb]}{[old] [30.9gb]->[30.9gb]/[30.9gb]}
[2023-02-17 10:02:47,551][WARN ][netty.channel.socket.nio.AbstractNioSelector] Unexpected exception in the selector loop.
java.lang.OutOfMemoryError: Java heap space
[2023-02-17 10:04:13,535][WARN ][netty.channel.socket.nio.AbstractNioSelector] Unexpected exception in the selector loop.
java.lang.OutOfMemoryError: Java heap space
[2023-02-17 10:02:54,144][WARN ][netty.channel.socket.nio.AbstractNioSelector] Unexpected exception in the selector loop.
java.lang.OutOfMemoryError: Java heap space
[2023-02-17 10:02:47,551][WARN ][netty.channel.socket.nio.AbstractNioSelector] Unexpected exception in the selector loop.
java.lang.OutOfMemoryError: Java heap space