mindw / elasticsearch-prometheus-exporter

Prometheus exporter plugin for ElasticSearch
Apache License 2.0
22 stars 5 forks source link

Prometheus exporter consuming high memory #60

Open zaheda-mycode opened 2 months ago

zaheda-mycode commented 2 months ago

We have been using this plugin to fetch the metrics. As part of the recent analysis we see that Counter objects are created for every scrape and this results in piling up of usage of memory. After certain considerable amount of time, it results in high memory consumption as it does not release these objects.

image 2 image 1

mindw commented 1 month ago

@zaheda-mycode thank you for the very detailed report and thorough analysis.

Unfortunately I lack the knowledge and resources to delve into this. The last I used ES was over 2 years ago and my Java mileage is very low.

Any help would be appreciated.