add_session_metadata
processs DB can grow to 20k+ entries, OOMing machine
#42317
Labels
add_session_metadata
processs DB can grow to 20k+ entries, OOMing machine
#42317
We have at least one report of auditbeat OOMing a machine with the
add_session_metadata
processor:add_session_metadata
after a bit of tinkering, I can reproduce this with the following config:
I instrumented the processor to dump the entire process DB used by the
hostfs
provider, and just running some SSH commands in a loop is enough to get the DB up to 30k+ entries in a few minutes, before the reaper would clean them up. However, the process count sitting in the DB is still 12k+ after a few minutes. On hight-load systems, the real count is probably much higher.I'm not entirely sure what's going on here, but there's a massive amount of log spam suggesting that there's something up with the PID values coming from auditd:
The majority of the processes in the database are also missing metadata, suggesting they're processes that failed a PID lookup:
I wonder if the values we expect to be PIDs/TGIDs at various points are just TIDs instead?
The text was updated successfully, but these errors were encountered: