Thanks to visit codestin.com
Credit goes to github.com

Skip to content

TraceableAuthenticatorManagerListener OOM #49532

Closed
@tourze

Description

@tourze

Symfony version(s) affected

6.1.*

Description

I have a project using symfony and swoole runtime.
In development, the memory will not release after request finished.
After some research, we found https://github.com/BitOne/php-meminfo and use find that the \Symfony\Component\Security\Http\Authenticator\Debug\TraceableAuthenticatorManagerListener::$authenticatorsInfo will increase after request finished, then the process OOM.

How to reproduce

  1. Install symfony and swoole runtime or any other long-process runtime;
  2. Login in user;
  3. Refresh the page and watch the system memory refresh;

Possible Solution

implement the ResetInterface and reset $authenticatorsInfo in reset function.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions