Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guzzle Logger is leaking in long running scripts #326

Open
mkardakov opened this issue May 8, 2023 · 0 comments
Open

Guzzle Logger is leaking in long running scripts #326

mkardakov opened this issue May 8, 2023 · 0 comments

Comments

@mkardakov
Copy link

Q A
Symfony version ^5.4
Bundle version v8.3.0

Hello,
I faced an issue with a memory leak in a long-running script.
I am using logging:true option in production to track HTTP requests in kibana later on.
Once the option enabled the bundle starts logging requests and responses and collects them in a variable.
https://github.com/8p/EightPointsGuzzleBundle/blob/master/src/Log/Logger.php#L66

The problem is that the logger never clears it and it causes a memory leak.
As far as I understand It will clear the memory if the profiler is turned ON which is not the case for production

Are there any solutions for this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant