-
Notifications
You must be signed in to change notification settings - Fork 919
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
Memory usage keeps increasing until OOM #3269
Comments
Hi! Thanks for opening this issue! So, it seems there might be a memleak when the rule triggers. Also, in case it is still present, can you share the configuration too? Or you are using the default one? |
So, after
I see a +8M increase in resident memory:
We got a problem, Houston. But not that big, at least here. EDIT: going to run with valgrind massif tool to check if we can easily spot the leak! |
Ok on a second thought ,considering that i am running
i'd expect around 10 events per-second that means 36k events per-hour. How could i reach 8 millions events in like 30minutes 🤣 |
Hi @FedeDP, Thanks for investigating my problem. I've tested now on Falco 0.38.1 and it has the same issue. Digging more into the problem, I found out that the memory leak is because I have http_output enabled. http_output: This is the only difference in configuration vs the default one. |
Thank you both very much! I will give it a look and report back :) |
Out of curiosity, which libcurl version are you using? The bundled one or the system one? EDIT: Anyway, i am able to reproduce by enabling http output |
So, it seems like there is something wrong in the |
So, i tried to repro this with a minimal libcurl-only example but couldn't. TLDR: setting |
Hi, Thank you again for your help and sorry for the time spent on this matter. |
No problem sir, thanks for asking! |
Hi @FedeDP , sry for bring this up, I met the same issue on 0.38.0, but may I know that if I set outputs_queue.capacity to some fixed value, does it mean falco will drop some events if cap is met? If yes, do we have some other options to mitigate this OOM issue? |
Yes, exactly.
Unfortunately no; well if your system is generating too many events perhaps some rule is too noisy and must be stricter. |
got it thanks for answering. do we have any metrics we can use to monitor when a fixed value is chosen? i read https://falco.org/docs/metrics/falco-metrics/ but having a hard time to understand what metric's meaning actually, like falcosecurity_scap_n_retrieve_evts_drops_total and falcosecurity_scap_n_store_evts_drops_total, the difference between it and etc |
Describe the bug
Falco memory usage keeps increasing until OOM
How to reproduce it
Create a custom rule "command_args.yaml"
Run echo multiple times and see memory increase until OOM
Screenshots

Environment
The text was updated successfully, but these errors were encountered: