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

WebTestCase memory leak fix #582

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

WebTestCase memory leak fix #582

wants to merge 1 commit into from

Conversation

shtumi
Copy link

@shtumi shtumi commented Mar 12, 2021

There is memory leak in WebTestCase because method getContainer creates new kernel which is never shutdown.
So in my project I was need more then 4Gb of memory to pass about 800 tests.
After fix I need less then 300Mb.

This problem was discussed here:
symfony/symfony#35164

And also it was fixed in similar (but not exact) way inside LiipTestFixturesBundle:
liip/LiipTestFixturesBundle#62

@alexislefebvre
Copy link
Collaborator

Thanks! Please fix the issue reported by StyleCI.

@alexislefebvre
Copy link
Collaborator

@shtumi could you please rebase the PR and fix the error reported by StyleCI?

@shtumi
Copy link
Author

shtumi commented Aug 10, 2021

really currently code of WebTestCase is changed a lot and I'm really not sure that problem is still exists and if exists, then then it's more easy to take new fork, investigate the problem and give new solution.

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

Successfully merging this pull request may close these issues.

None yet

2 participants