{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/975","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/975/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/975/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/975/events","html_url":"https://github.com/facebook/jest/issues/975","id":153449993,"number":975,"title":"Process out of memory, on multiple jest versions","user":{"login":"ColCh","id":599439,"avatar_url":"https://avatars.githubusercontent.com/u/599439?v=3","gravatar_id":"","url":"https://api.github.com/users/ColCh","html_url":"https://github.com/ColCh","followers_url":"https://api.github.com/users/ColCh/followers","following_url":"https://api.github.com/users/ColCh/following{/other_user}","gists_url":"https://api.github.com/users/ColCh/gists{/gist_id}","starred_url":"https://api.github.com/users/ColCh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColCh/subscriptions","organizations_url":"https://api.github.com/users/ColCh/orgs","repos_url":"https://api.github.com/users/ColCh/repos","events_url":"https://api.github.com/users/ColCh/events{/privacy}","received_events_url":"https://api.github.com/users/ColCh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-06T13:23:57Z","updated_at":"2016-05-10T17:22:49Z","closed_at":null,"body":"Our codebase is not that huge. Around 50 small modules.\r\n\r\nThis error pops up when running jest with or without coverage.\r\n\r\nTesting all modules (command: just a `jest`)\r\n```\r\n<--- Last few GCs --->\r\n\r\n   58239 ms: Scavenge 1400.2 (1452.1) -> 1400.2 (1452.1) MB, 5.7 / 0 ms (+ 3.9 ms in 1 steps since last GC) [allocation failure] [incremental marking delaying mark-sweep].\r\n   59209 ms: Mark-sweep 1400.2 (1452.1) -> 1400.2 (1452.1) MB, 969.6 / 0 ms (+ 64.8 ms in 493 steps since start of marking, biggest step 3.9 ms) [last resort gc].\r\n   60164 ms: Mark-sweep 1400.2 (1452.1) -> 1400.2 (1452.1) MB, 955.0 / 0 ms [last resort gc].\r\n\r\n\r\n<--- JS stacktrace --->\r\n\r\n==== JS stack trace =========================================\r\n\r\nSecurity context: 0x2374abbe3ac1 <JS Object>\r\n    1: ArraySlice [native array.js:~568] [pc=0x57ad9775260] (this=0x134cee9241f9 <an Arguments with map 0x3f792b70b169>,av=0x2374abb04189 <undefined>,aw=0x2374abb04189 <undefined>)\r\n    2: arguments adaptor frame: 0->2\r\n    6: /* anonymous */ [/foo-project/node_modules/jest-mock/src/index.js:203] [pc=0x57ad977202e] (this=0x2374abbfd081 <JS Global Object>)\r\n...\r\n\r\nFATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory\r\n```\r\n(`JS stacktrace` is null...)\r\n\r\nI'm using node v5.10.1.\r\nI tried jest@12, jest@11, jest@0.9\r\n\r\nIt runs well when executing files one by one, but running on all tests it blows up.\r\n\r\nNode process consumes aroung 1G of mem.\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/218228903","html_url":"https://github.com/facebook/jest/issues/975#issuecomment-218228903","issue_url":"https://api.github.com/repos/facebook/jest/issues/975","id":218228903,"user":{"login":"ColCh","id":599439,"avatar_url":"https://avatars.githubusercontent.com/u/599439?v=3","gravatar_id":"","url":"https://api.github.com/users/ColCh","html_url":"https://github.com/ColCh","followers_url":"https://api.github.com/users/ColCh/followers","following_url":"https://api.github.com/users/ColCh/following{/other_user}","gists_url":"https://api.github.com/users/ColCh/gists{/gist_id}","starred_url":"https://api.github.com/users/ColCh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColCh/subscriptions","organizations_url":"https://api.github.com/users/ColCh/orgs","repos_url":"https://api.github.com/users/ColCh/repos","events_url":"https://api.github.com/users/ColCh/events{/privacy}","received_events_url":"https://api.github.com/users/ColCh/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T17:22:49Z","updated_at":"2016-05-10T17:22:49Z","body":"Thanks for your answer. Sory for delay.\r\n\r\nOOM - with coverage collection and without it\r\n\r\nAt first step I will try to profile my code for myself. May be I have memory leak in my code? Or Images can consume a lot of memory?"}}