Skip to content

Could Rollbax cause a memory leak in my application? #120

@ryanzidago

Description

@ryanzidago

Hi all,

I'm having some trouble identifying why do I have a memory leak in my application. You can find more info in this Elixir Forum post.
Otherwise, as a TLDR:

I have a process error_logger that keeps accumulating data. When I look into the process' state I see the following:

{items,{"Installed handlers",
        [{handler,'Elixir.Rollbax.Logger',false,
                  #{'__struct__' => 'Elixir.Rollbax.Logger',
                    reporters => ['Elixir.Rollbax.Reporter.Standard']},
                  false}]}}

This is why I think Rollbax may be causing memory leak in my application.

Elixir version:

1.11.2

Erlang version:

23.0.3

Rollbax version:

  "rollbax": {:hex, :rollbax, "0.11.0", "9557935d09d154c8775fa4efc709bfacbb73f20c58a3ced31dea2a74dd6e25de", [:mix], [{:hackney, "~> 1.1", [hex: :hackney, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "a74318b175aae4bdddcc1ecfdf38755df3d8143c9902b1bfd19507ac9901062d"},

Do you know how does Rollbax uses the error_logger?
Does it seem plausible that Rollbax is causing a memory leak and if so, why? 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions