Skip to content

Elastalert is using up to much CPU and memory #1425

Answered by jertel
fast-turtle-9 asked this question in Q&A
Discussion options

You must be logged in to vote

The memory usage depends on the rule configurations and the amount of data each rule returns on every query. I've not personally run into a scenario where ElastAlert 2 runs out of memory, and I've had it running for many months at a time. I'm not saying there's no memory leak, but just that I've not observed it and so it will be difficult to find it without seeing it firsthand.

If you can rewrite your rules to avoid querying large result sets, such as switching to use_count_query to only return counts instead of the actual documents, that would likely eliminate the problem. Or if you can continue to isolate the problem then perhaps we have a better shot of finding out specifically what's …

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@fast-turtle-9
Comment options

@jertel
Comment options

@fast-turtle-9
Comment options

@jertel
Comment options

Answer selected by fast-turtle-9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants