-
Notifications
You must be signed in to change notification settings - Fork 0
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
Memory leak when running all unit tests #12311
Comments
Comment by redmunds I think this thread in the requirejs forum describes the problem we're having and offers a solution: https://groups.google.com/forum/?fromgroups#!topic/requirejs/DtMnHdKlcVE |
Comment by njx Reviewed. Medium priority, nominating for sprint 27. |
Comment by redmunds I think what we need to do is to unload (or "undefine") unit test modules after they are run. The Currently, unit test module require statements are hard-coded, so I think we need to dynamically load/unload each unit test module every time the tests are run. This means we'll have to refactor the code since Jasmine Spec Runner dialog is populated from module info. |
Comment by jasonsanjose I'm starting to think we're leaking memory due to closures. Randy's fix in #4313 addresses some of those issues around setup and teardown of a spec. There's a lot more work to do though. |
Comment by jasonsanjose I'm pretty certain now that we're leaking memory for every new brackets window we open. Ignoring the integration tests (which are integrations tests because they open a new window), if I simply use the devtools timeline to measure memory while I open then close a series of windows view Debug > New Window, I see the Document and DOM Node counts climb up and up. GC helps some, but long after the windows are closed the Documents and DOM Nodes are still around. See devtools graph: |
Comment by jasonsanjose I merged |
Comment by njx Moving out to sprint 29 - seems like we have higher priority unit test failures to worry about. |
Issue by gruehle
Monday Jun 10, 2013 at 22:49 GMT
Originally opened as adobe/brackets#4185
Steps to repro
Results
Brackets gets really sluggish and uses up tons of memory.
Expected
Should be able to run all tests without running out of memory.
The text was updated successfully, but these errors were encountered: