ES内存问题 Elasticsearch exception type=circuit_breaking_exception,

遇到的内存问题一

后台查看设备运行状态有时候会报错

Elasticsearch exception [type=circuit_breaking_exception, reason=[parent] Data too large, data for [] would be [986856200/941.1mb], which is larger than the limit of [986061209/940.3mb], real usage: [986855776/941.1mb], new bytes reserved: [424/424b], usages [request=0/0b, fielddata=2884/2.8kb, in_flight_requests=424/424b, model_inference=0/0b, accounting=6382288/6mb]]

ES内存问题 Elasticsearch exception type=circuit_breaking_exception,_第1张图片


查到的相关资料

分析问题
出错这种错误的确是内存方面的原因,来看下,
Data too large, data for [] would be [1035707518/987.7mb], //A
which is larger than the limit of [986061209/940.3mb], //B
real usage: [1035706544/987.7mb], //C
new bytes reserved: [974/974b] //D

这里有4个数值:

B处的数就是上限,超过这个就报错。(缺省是它是ES最大内存的95%)
C处的数值是你的本机上ES进程已使用的内存大小
D处的数值1150就是你本次操作(或者说执行当前的任务)所需要内存
C + D = A > B,所以报错了
结论
到这里你也应该很清楚问题的最终因素,内存?对,就是内存问题!

简单粗暴解决办法
你可以增大-Xmx量(如果物理内存足够的话)
当然,最省事的做法就是关闭CircuitBreaker检查(不建议).

参考自 : https://blog.csdn.net/qq_33576276/article/details/110945364

你可能感兴趣的:(内存问题,es6)