High memory usage with NATS source on 0.21.2 #12834
Labels
meta: blocked
Anything that is blocked to the point where it cannot be worked on.
source: nats
Anything `nats` source related
type: bug
A code related bug.
A note for the community
Problem
I've been stress testing Vector to see how NATS + Vector will compare to our current setup of Rabbitmq + Logstash in terms of throughput and resources and observed weird memory usage pattern with NATS source. When hitting some arbitual RPS threshold (seems to be around 100k on my machine) memory usage shoots up until system hits swap and dies
After stopping logs generation Vector takes a while to finish processing messages, but memory is not being reclaimed by the system
Configuration
Version
vector 0.21.2 (x86_64-unknown-linux-gnu)
Debug Output
Example Data
{"action":null,"additional_information":null,"box_id":"e5bd05e7-8972-4850-81a6-204a26ee4ca3","category":null,"create_time":"2022-05-23T21:04:13.013361","event_id":1070002,"justification":null,"host_id":"e5bd05e7-8972-4850-81a6-204a26ee4ca3","message":"test_message","protocol":null,"receive_time":"2022-05-24T08:04:25.330940","request_id":null,"severity":"low","source_ip":null,"source_mac":null,"source_id":null,"source_hostname":null,"source_port":null,"target_ip":null,"target_mac":null,"target_id":null,"target_hostname":null,"target_port":null,"user":null}
Additional Context
Log output with
RUST_BACKTRACE
and-vvv
is 64M compressed (4.9G uncompressed), so I've put it on my Google Drive, it's available hereI'm building vector from source and running it in docker. Build command is
If there is anything I can provide to help further - please let me know
Thank you
References
No response
The text was updated successfully, but these errors were encountered: