You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context: The host runs a Java-based TCP application using Logback for logging. Vector is configured to tail these logs.
Log Rotation Strategy: The logs are rotated daily at midnight. The rotation process is as follows:
Rename: The active log file is renamed with the date suffix (e.g., app.log -> app.2025-12-17.log).
Move: The renamed file is moved to a date-specific directory (e.g., /logs/2025-12-17/).
Create: A fresh log file is created for the application to continue writing.
The Problem & Debugging Attempts: I initially used a kafka sink, but noticed a continuous creep in both CPU and Memory usage. To isolate the issue, I have:
Changed the sink to blackhole.
Minimized transforms logic.
Tried Jemalloc tuning: applied MALLOC_CONF="background_thread:true,dirty_decay_ms:1000,muzzy_decay_ms:1000", but the issue persists.
Despite these changes (Source -> Minimal Transform -> Blackhole), the resource usage continues to grow over time.
Metrics: I am monitoring Vector using prometheus_exporter and Grafana.
Any insights on how to debug this further or what might be causing this leak in a file-source setup (especially with the rename-and-move rotation strategy) would be greatly appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
Hi,
I am encountering an issue with gradual CPU and Memory usage increase while running Vector on a Rocky Linux server (Non-containerized environment).
Environment:
Vector Version: 0.51.1
Installation Method: Binary (vector-0.51.1-x86_64-unknown-linux-gnu.tar.gz)
OS: Rocky Linux 9.3 (Blue Onyx)
Kernel: 5.14.0-362.24.1.el9_3.0.1.x86_64
Hardware: Intel Xeon (Cascadelake) 2 Cores / 4GB RAM / 50GB Disk
Context: The host runs a Java-based TCP application using Logback for logging. Vector is configured to tail these logs.
Log Rotation Strategy: The logs are rotated daily at midnight. The rotation process is as follows:
Rename: The active log file is renamed with the date suffix (e.g., app.log -> app.2025-12-17.log).
Move: The renamed file is moved to a date-specific directory (e.g., /logs/2025-12-17/).
Create: A fresh log file is created for the application to continue writing.
The Problem & Debugging Attempts: I initially used a kafka sink, but noticed a continuous creep in both CPU and Memory usage. To isolate the issue, I have:
Changed the sink to blackhole.
Minimized transforms logic.
Tried Jemalloc tuning: applied MALLOC_CONF="background_thread:true,dirty_decay_ms:1000,muzzy_decay_ms:1000", but the issue persists.
Despite these changes (Source -> Minimal Transform -> Blackhole), the resource usage continues to grow over time.
Metrics: I am monitoring Vector using prometheus_exporter and Grafana.
Any insights on how to debug this further or what might be causing this leak in a file-source setup (especially with the rename-and-move rotation strategy) would be greatly appreciated.
Thanks!
Vector Config
in log.yml
in vector.yml
Vector Logs
No response
Beta Was this translation helpful? Give feedback.
All reactions