JavaScript heap out of memory
axelbarfod opened this issue · 0 comments
axelbarfod commented
I am runing a test that gets and API, this api returns a big response. After I get this response I get the id and make another request, after a couple of request I get the following error:
[70250:0x102801e00] 89290 ms: Mark-sweep 1412.0 (1596.5) -> 1412.0 (1576.0) MB, 1274.4 / 0.3 ms (+ 0.0 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 1274 ms) last resort GC in old space requested
[70250:0x102801e00] 90742 ms: Mark-sweep 1412.0 (1576.0) -> 1412.0 (1576.0) MB, 1451.5 / 0.3 ms last resort GC in old space requested
<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 0x18b8a51a5ee1 <JSObject>
2: /* anonymous */(aka /* anonymous */) [/Users/abarfod/workspace/chakram-api-testing-demo/node_modules/request/lib/helpers.js:45] [bytecode=0x18b8e6e68c39 offset=14](this=0x18b858002311 <undefined>,i=0x18b8a51828c1 <String[6]: domain>)
3: arguments adaptor frame: 3->1
4: forEach(this=0x18b874b90961 <JSArray[40]>)
5: copy(aka copy) [/Users/abarfod/workspace/chakram-api-testing-de...
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
Has anyone faced this issue? How could I allovate more memory?