Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report