Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to send a large number of bool query conditions at a time and ES's java stack memory overflow?

Shulou Source: shulou.com Published: 2022-06-02 01:47:26 10月02日 Update

Today to talk to you about a large number of bool query conditions and ES java stack memory overflow how to do, many people may not understand, in order to make you better understand, Xiaobian summarized the following content, I hope you can get something according to this article.

Record: sending a large number of query conditions (100000 bool query conditions) at a time, querying the ES of a single node will initially lead to ES query timeout; later, it will lead to no available nodes; persistence will lead to memory overflow of ES's java stack.

Solution:

1. Control the number of bool query conditions generated each time from the source

two。 Only a limited number of bool query conditions (10240, default 1024) are allowed, and requests exceeding the limit are discarded (limited in the elasticsearch.yml configuration file).

Indices.query.bool.max_clause_count: 10240 after reading the above, do you have any further understanding of how to send a large number of bool query conditions at a time and what to do about ES's java stack memory overflow? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

Tags: Query condition memory stack content quantity node how to do ten thousand have single file method more source knowledge article industry information information channel Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Shulou Tech Info Xiaomi NVidia Shulou Information