scout_apm_elixir icon indicating copy to clipboard operation
scout_apm_elixir copied to clipboard

Prevent AgentManager OOM

Open simedw opened this issue 4 years ago • 2 comments

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).

simedw avatar May 19 '21 08:05 simedw

@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 avatar May 20 '21 16:05 jeregrine

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

jeregrine avatar May 20 '21 20:05 jeregrine