elixir_agent
elixir_agent copied to clipboard
~100mb memory usage when idle
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?
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
Not from the NewRelic team, but FYI our staging environment has <1mb memory usage for the same process
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