{"action":"created","issue":{"url":"https://api.github.com/repos/cypress-io/cypress/issues/431","repository_url":"https://api.github.com/repos/cypress-io/cypress","labels_url":"https://api.github.com/repos/cypress-io/cypress/issues/431/labels{/name}","comments_url":"https://api.github.com/repos/cypress-io/cypress/issues/431/comments","events_url":"https://api.github.com/repos/cypress-io/cypress/issues/431/events","html_url":"https://github.com/cypress-io/cypress/issues/431","id":207470780,"number":431,"title":"Cypress slows down drastically over long runs - restart renderer between spec files?","user":{"login":"jrdallen97","id":24575899,"avatar_url":"https://avatars1.githubusercontent.com/u/24575899?v=3","gravatar_id":"","url":"https://api.github.com/users/jrdallen97","html_url":"https://github.com/jrdallen97","followers_url":"https://api.github.com/users/jrdallen97/followers","following_url":"https://api.github.com/users/jrdallen97/following{/other_user}","gists_url":"https://api.github.com/users/jrdallen97/gists{/gist_id}","starred_url":"https://api.github.com/users/jrdallen97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrdallen97/subscriptions","organizations_url":"https://api.github.com/users/jrdallen97/orgs","repos_url":"https://api.github.com/users/jrdallen97/repos","events_url":"https://api.github.com/users/jrdallen97/events{/privacy}","received_events_url":"https://api.github.com/users/jrdallen97/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-02-14T10:08:42Z","updated_at":"2017-06-16T17:34:19Z","closed_at":null,"body":"**Description**\r\nWhen I try to run all tests at once with `cypress run`, the tests slow down part-way through. I think this is related to the memory usage of the renderer, since a process called 'Cypress helper' has a continuously increasing memory usage, and the slowdown hits when it reaches 3 to 3.5GB of RAM (I only have 4GB on my system). Eventually, a test that usually takes 10-15 seconds took over 3 minutes to run.\r\n\r\nI'm running the tests locally on a MacBook, using Cypress CLI 0.13.1 and App 0.19.0.\r\n\r\n**Additional Info**\r\nAs suggested in issue #349, I think an option like `restartBrowserBetweenSpecFiles: true` in cypress.json would most likely fix the issue for me.\r\n\r\nNot many options seem to help the memory usage much, turning off video recording and setting number of tests kept in memory to 0 probably made it last a little bit longer, but it's not the Cypress process itself that is using all the memory.\r\n\r\n`CYPRESS_MEMORY=1 /Applications/Cypress.app/Contents/MacOS/Cypress --project <path_to_your_project> --show-headless-gui`\r\n\r\nBrian suggested running the above command to view the memory usage for the node process, but the value reported never went over 100MB so I doubt there's any problem here. For reference, the output in the terminal looked like this: `info { rss: 132407296, heapTotal: 102604800, heapUsed: 89873952 }`"},"comment":{"url":"https://api.github.com/repos/cypress-io/cypress/issues/comments/309087447","html_url":"https://github.com/cypress-io/cypress/issues/431#issuecomment-309087447","issue_url":"https://api.github.com/repos/cypress-io/cypress/issues/431","id":309087447,"user":{"login":"brian-mann","id":1268976,"avatar_url":"https://avatars1.githubusercontent.com/u/1268976?v=3","gravatar_id":"","url":"https://api.github.com/users/brian-mann","html_url":"https://github.com/brian-mann","followers_url":"https://api.github.com/users/brian-mann/followers","following_url":"https://api.github.com/users/brian-mann/following{/other_user}","gists_url":"https://api.github.com/users/brian-mann/gists{/gist_id}","starred_url":"https://api.github.com/users/brian-mann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brian-mann/subscriptions","organizations_url":"https://api.github.com/users/brian-mann/orgs","repos_url":"https://api.github.com/users/brian-mann/repos","events_url":"https://api.github.com/users/brian-mann/events{/privacy}","received_events_url":"https://api.github.com/users/brian-mann/received_events","type":"User","site_admin":false},"created_at":"2017-06-16T17:34:19Z","updated_at":"2017-06-16T17:34:19Z","body":"@ddeath the GUI mode is not really 'built' to run all the tests - even though we give you that option. You should be running all your tests in headless mode with `cypress run`. There are performance optimizations we do in that mode. The headed GUI mode is really for day to day iteration on only a subset of tests."}}
{"actor":{"display_login":"brian-mann"}}