-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prometheus exporter high memory usage #658
Comments
I think this tells it to allocate 6GB:
I assume it can do with much less than |
Ah … I thought that is its maximum value, not making it that big…that makes
sense now. I was confused by another problem, where the exporter was in
crashloop all the time, I solved that by tuning the livenes probe a bit…
fiddling with heap size was one of the attempts to fix that…
Thanks, I think it will be quite ok with default heap size value, will try
that in a moment.
…On Tue 21. 11. 2023 at 17:01, Radu Gheorghe ***@***.***> wrote:
I think this tells it to allocate 6GB:
envVars:
- name: JAVA_HEAP
value: 6000m
I assume it can do with much less than 6000m. Try a 10th of that and see
how it goes.
—
Reply to this email directly, view it on GitHub
<#658 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAOD2SG5PENFVBMCNCJ263YFTF55AVCNFSM6AAAAAA7UPKTP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRRGIYDOMRRG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Yep, that's 23MB. Weird that it takes a while to collect metrics, is that a symptom (e.g. of the Exporter stuck in GC, then it doesn't have spare CPU to collect the metrics) or a cause (e.g. you have a ton of shards in the cluster, collecting them takes a while and takes heap)? Maybe G1 falls behind with garbage collection? You can verify this hypothesis by setting the |
The cluster is not big at all I think, 1 shard, 2 replicas, ~ 8753202 documents, taking ~22Gb of memory ... Thanks for hints, I'll take a look on Java metrics and how GC performs. |
You're welcome. If you need something to monitor GC/JVM metrics (and Solr metrics, for that matter), we have a tool that you might find useful. |
Hello,
we have trouble with solr exporter, it's very hungry for memory, it needs around ~6G of RAM, which is a lot and I can't figure out why.
Can I ask you any hint?
It's pretty much default setup, nothing custom:
SolrCloud 9.3.0. Nothing too much custom for the exporter deployment:
The text was updated successfully, but these errors were encountered: