Hi;
We have upgraded our ES Cluster from 7.10.0 to 7.16.2 . After upgrade , we have noticed heap usage increased a lot because of G1 Humongous Allocations. ES heap has a lot of Humongous regions.
When Heap usage reaches to %95, Parent Circuit Breaker prevents ES from out of memory error like below:
[2021-12-25T13:07:12,966][INFO ][o.e.i.b.HierarchyCircuitBreakerService] [esdata01] attempting to trigger G1GC due to high heap usage [30646782976]
[2021-12-25T13:07:13,140][INFO ][o.e.i.b.HierarchyCircuitBreakerService] [esdata01] GC did bring
memory usage down, before [30646782976], after [6917893816], allocations [69], duration [174]
After investigating issue, We saw the problem is related directly to Geo Shape Index and Queries.
{
"query": {
"bool": {
"must": {
"match_all": {}
},
"filter": {
"geo_shape": {
"geometry": {
"shape": {
"type": "Circle",
"radius": "100.0m",
"coordinates": [
${__javaScript((Math.random() * (360) - 180).toFixed(7) * 1,)},
${__javaScript((Math.random() * (180) - 90).toFixed(7) * 1,)}
]
},
"relation": "intersects"
}
}
}
}
}
It seems Elasticsearch changed Geo Shape Code implementation between ES 7.10 and 7.16 so it causes to critical heap issue now.
Our JVM setting has 3OGB Heap, other settings are default of ES.
Do you have any recommendation to fix this issue? or Is Elasticsearch aware of this issue and will fix in next releases?
Thanks;
Bülent