-
Notifications
You must be signed in to change notification settings - Fork 239
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
Possible memory leak in Alloy #670
Comments
Additional logs from the oom killer:
|
Can you share a heap pprof dump? |
I was just collecting pprof outputs, and trying to compare them (this is the first time I'm looking at pprof). I've unfortunately overwritten the raw dumps, here are two png's generated from them.
|
I don't see the spanmetrics connector in the pprof of the grafana-agent, are you running the same exact configs? |
Regarding the spanmetrics pipeline: yes, same config. I assume it was among the dropped nodes due to low memory impact. |
This issue has not had any activity in the past 30 days, so the |
This issue should now be resolved because Alloy is now using a new OTel version with the bugfix mentioned above. |
What's wrong?
I tried migrating from grafana-agent to alloy, while keeping the flow configuration. While grafana-agent was using ~1.1GB of memory, alloy needs much, much more, and the pod regularly hits OOM.
The instances between 15:00 and 16:30 ran without GOMEMLIMIT, and with higher memory limits.
Currently running with the following settings:
We use grafana-agent / alloy only for downsampling traces, and additionally generating spanmetrics and service graph. Config is attached below. This config (with minimal differences, we used a batch processor in front of the servicegraph connector to work around the missing
metrics_flush_interval
option) has worked in a stable way with grafana-agent.Steps to reproduce
Deploy alloy in kubernetes, with helm, as a drop in replacement for grafana-agent.
Feed traces from mimir/tempo/loki/grafana/prometheus
Watch as memory usage grows until pod is killed with OOM.
System information
Linux 5.10.209 aarch64 on EKS
Software version
Grafana Alloy v1.0.0
Configuration
Logs
The text was updated successfully, but these errors were encountered: