LiipFunctionalTestBundle icon indicating copy to clipboard operation
LiipFunctionalTestBundle copied to clipboard

WebTestCase memory leak fix

Open shtumi opened this issue 3 years ago • 3 comments

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: https://github.com/symfony/symfony/issues/35164

And also it was fixed in similar (but not exact) way inside LiipTestFixturesBundle: https://github.com/liip/LiipTestFixturesBundle/pull/62

shtumi avatar Mar 12 '21 08:03 shtumi

Thanks! Please fix the issue reported by StyleCI.

alexislefebvre avatar Mar 12 '21 17:03 alexislefebvre

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

alexislefebvre avatar Aug 10 '21 12:08 alexislefebvre

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.

shtumi avatar Aug 10 '21 19:08 shtumi