VortexMetrics Memory Growth: Children Accumulate Indefinitely in Long-Lived Sessions Resulting in OOM #5946
Replies: 3 comments
-
|
This might be the nudge I needed to look deeper into metrics, this is a really good report! |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@sgrebnov can you try #6187 out? I wonder if it (together with some other previous changes) makes a significant difference |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
From my testing, this issue has been solved, with the final piece being the work attached to #6078 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Issue Description
VortexMetricsaccumulates child metrics indefinitely whenVortexSessionis reused across multiple queries, causing memory leaks in production workloads. Thechild_with_tags()method stores strong references to children that are never cleared, leading to memory growth in high-throughput scenarios.Expected Behavior
No memory growth when
VortexSessionis re-used across multiple queriesActual Behavior
Memory growth when
VortexSessionis re-used across multiple queriesCurrent behavior:

With temporary disabled metrics (memory is higher due to larger data)
Reproduction Steps
Ownership chain:
Each query creates many children (one per partition × files), but they're never cleared:
VortexSessionis designed to be long-lived and reusedVortexMetricsexistsVortexSessionclone existsQuestions / Notes
OS Version Information
Ubuntu 24.04
I acknowledge that:
```) on separate lines.Beta Was this translation helpful? Give feedback.
All reactions