-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
[FrameworkBundle] KernelTestCase Resetting Services take more memory than without #51006
Comments
gc_collect_cycles to the rescue? |
Sadly not actually, no changes measured on using |
Got time today to run the whole test suite, the endresult of the whole test suite is not so dramatic as the first few tests but still it improves and currently avoids that our CI running into With Reset: Memory: 2.21 GB Without Reset (currently vendor-patched the class): Memory: 1.98 GB @nicolas-grekas are always all services reseted? Or only the one which where used? |
Hey, thanks for your report! |
I still use the vendor patch in the project to avoid memory increasing unexpectly. |
Symfony version(s) affected
6.3.1 (not sure if lowers also effected)
Description
I'm currently fighting memory issues in a projects tests. I stumble over #45668 and in my case reverting that change uses less memory than more memory e.g.:
Before (with $container->reset()) memory increases faster:
After (without $container->reset()) memory increases not so fast:
How to reproduce
I'm not able to share the project. But the Extension outputting the memory usage from class to class can be found here: https://gist.github.com/alexander-schranz/d2b30177c1043099c44ef50b33db8412
So maybe somebody can test its own project if it increases or decreases when not call
$container->reset()
method.Possible Solution
Additional Context
No response
The text was updated successfully, but these errors were encountered: