Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Symfony 2.5 leaks memory during functional tests #11236

Copy link
Copy link
Closed
@andreausu

Description

@andreausu
Issue body actions

Since upgrading to symfony 2.5 I've been experiencing heavy memory leaks during the test suite execution on my application.

We're using the client provided by symfony (WebTestCase) to do functional testing of the application, we have ~300 tests with ~1800 assertions and on symfony 2.4 the whole test suite finished in about 3 minutes while consuming only ~100mb of RAM. After upgrading to symfony 2.5 the test suite goes out of memory very soon, consuming more memory at every test. Using a memory_limit of 512mb it stops at about 20%.

I tried upgrading to symfony dev-master but the issue remains.

I set phpunit's processIsolation flag to true to mitigate the problem, but the test suite is very slow when run with that flag.

I'm not the only one who experienced this problem: https://groups.google.com/forum/#!topic/symfony2/IItwqezE_PY

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.