I'm trying to scan my hard disk, using on-demand Yara scanning in python. But when I start the scan from the root, the program consumes a lot of memory and fails in about half a minute when the osqueryd service's memory usage gets to 500Mb-700Mb.
The exact error is: "osqueryd worker (1565658) stopping: Memory limits exceeded: 1493492000"
And a log is written:
On the other hand, when I scan iteratively every directory under the root (var, home etc:...) the osqueryd service memory usage increase slowly and constantly as the program run and ends up on ~1.3G at the end of the scanning (There is no failure).
Do you know how to solve this behavior ?