-
Notifications
You must be signed in to change notification settings - Fork 428
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
release 0.43 - 10x increase in memory usage (~50Mb -> ~500Mb) #990
Comments
Hi, could you share more details about cluster being monitored. |
Hi, thanks for the swift response. We have basic mongo replica set with 3 x mongod. (We have 5 mongo clusters which have similar config and I saw the same problem on all of them). The config for the exporter is: sidecars:
- image: percona/mongodb_exporter:0.42 # 0.43
env:
- name: EXPORTER_USER
valueFrom:
secretKeyRef:
name: mongo-psmdb-db-secrets
key: MONGODB_CLUSTER_MONITOR_USER
- name: EXPORTER_PASS
valueFrom:
secretKeyRef:
name: mongo-psmdb-db-secrets
key: MONGODB_CLUSTER_MONITOR_PASSWORD
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: MONGODB_URI
value: "mongodb://$(EXPORTER_USER):$(EXPORTER_PASS)@$(POD_IP):27017"
args: ["--discovering-mode", "--compatible-mode", "--collect-all", "--log.level=debug", "--mongodb.uri=$(MONGODB_URI)"]
name: metrics I can have a go at building a container, are there some instructions on how to do so? I'm not familiar with go. |
We released v0.43.1, please check if it fixes a problem.
replace localhost:42000 with your exporter host and port. We added more metrics to collstats collector, it could cause your problem as well. |
It's not really much different: The heap dump as requested: Thanks for looking at it |
Thank you, yeah, I was right, it's because of new metrics in collstats we implemented for #897. Let me think how can we make it configurable. |
If you don't use metrics from collstats instead of enabling all collectors you can enable only the ones you use. How to enable only part of collectors you can find in https://github.com/percona/mongodb_exporter/blob/main/REFERENCE.md. |
@blushingpenguin could you please also share amount of collections and indexes in them? |
Describe the bug
Release 0.43 increases the memory usage of the metrics container dramatically compared to 0.42
To Reproduce
Just switching the container version reproduces consistently
Expected behavior
Similar memory usage
Logs
On the LHS is v0.40, the middle is 0.43, the RHS is 0.42
Environment
This is a percona operator for mongodb managed deployment of mongo 7.0.15 running on microk8s 1.31 on ubuntu 24.04
The text was updated successfully, but these errors were encountered: