Skip to content

Prevent AgentManager OOM #120

Closed
simedw wants to merge 1 commit intoscoutapp:masterfrom
simedw:master
Closed

Prevent AgentManager OOM #120
simedw wants to merge 1 commit intoscoutapp:masterfrom
simedw:master

Conversation

@simedw
Copy link
Copy Markdown

@simedw simedw commented May 19, 2021

Hi,

We have had an issue for the past few months that agent_manager receives messages faster than it can handle. These messages end up taking more and more memory and eventually BEAM crashes due to out of memory.

This PR allows us to set max_heap_size, when the heap surpasses this limit the process will be killed (and then restarted by the supervisor).

@jeregrine
Copy link
Copy Markdown

@simedw this will temporarily solve your problem. If you have some availability and appetite to experiment with me on this I'd be happy to try some small stuff with as well.

@jeregrine
Copy link
Copy Markdown

@simedw I've got a draf PR with some discussion and small changes that may help #121 if you have time to talk I could jump on a slack call or something to try and work through it.

@lancetarn
Copy link
Copy Markdown
Contributor

With updates in V2.0.0 this has been substantially mitigated, based on my testing. I hope it works for others as well.

@lancetarn lancetarn closed this Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants