Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Symfony2 memory leaks and performance issues #2938
I wrote some functional tests for Symfony2 app with multiple requests in a test and encountered an issue with test failing due to lack of memory (3GB's was not enough to complete the test). I rewrote my tests and still memory consumption was too big.
Possible issues include:
referenced this issue
Mar 28, 2016
You have made me to spot some issues between Symfony2 module and Symfony2 connector.
This container variable is totally invalidated just before first test run, because Symfony2 connector boots a new kernel on every request, and booting a new kernel creates a new container instance. Just before booting a new kernel the connector save persisted services to inject them after kernel has been booted. As a side note, just because kernel is cloned here, kernel on Symfony2 module and Symfony2 connector will be out of sync, other big source of problems.
I will create issue to fix the first. The second will reopen #2042, but it's better to reopen and fix it the good way that having memleaks.
Many thanks for your research!