elasticsearch异常 Data too large

date
Aug 13, 2020
URL
slug
elasticsearch-data-too-large
status
Published
tags
es
elasticsearch
summary
问题 使用canalelasticsearch同步数据时,出现: Data too large, data for [<transport_request>] would be [256669646/244.7mb], which is larger than the limit of [255013683/243.1mb], real usage: [256666520/244.7mb], new bytes reserved: [3126/3kb], usages [request=0/0b, fielddata=4812/4.6kb, in_flight_requests=3126/3kb, accounting=6615462/6.3mb]
type
Post

问题

使用canalelasticsearch同步数据时,出现:

原因

堆内存不够当前查询加载数据所以会报错。

解决

提高堆栈内存
修改elasticsearchconfig目录下的jvm.options:
然后重启elasticsearch
增加堆内存使用率,默认70%,修改为90%:
参考文档:

© Akapril 2018 - 2024