elixir_agent icon indicating copy to clipboard operation
elixir_agent copied to clipboard

~100mb memory usage when idle

Open tansanDOTeth opened this issue 2 years ago • 1 comments

Describe the bug A clear and concise description of what the bug is.

I think this more of a question, since I am not sure if this is expected from the library. I would imagine it to have a lot less of a memory profile when its idle. My staging has no activity yet new relic is taking 100mb memory, is this correct?

CleanShot 2023-08-17 at 10 09 53@2x

Environment

  • Elixir & Erlang version (elixir -v):
1.12.3
  • Agent version (mix deps | grep new_relic_agent):
$ mix deps | grep new_relic_agent
* new_relic_agent (Hex package) (mix)
  locked at 1.27.7 (new_relic_agent) a0aa7208

tansanDOTeth avatar Aug 17 '23 01:08 tansanDOTeth

Not from the NewRelic team, but FYI our staging environment has <1mb memory usage for the same process

tomasz-tomczyk avatar Nov 29 '23 13:11 tomasz-tomczyk

The ErlangTrace GenServer is responsible for tracking cross process work, so the application must be doing work that is spawning processes which are being tracked by the agent. The GenServer has overload protection built into it, and really doesn't have any state. Perhaps there's something with the older version of Elixir / Erlang.

If you encounter this again, feel free to let us know

binaryseed avatar Dec 16 '24 04:12 binaryseed