Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save david-martin/51bc2937f39c9afb5b3f39c54c75bb01 to your computer and use it in GitHub Desktop.
Save david-martin/51bc2937f39c9afb5b3f39c54c75bb01 to your computer and use it in GitHub Desktop.
[dmartin@rollins-tp Downloads]$ node --max_old_space_size=17000 test.js
64223824
135745944
202980624
234982960
319800456
351802496
463027848
495292048
527293952
678130952
710132856
742134760
774136664
806138568
1016393248
1048395152
1080397056
1112398960
1144400864
1176402768
1208404672
1240406576
1304154200
1336163168
1368165072
1400166976
1432168880
1464170784
1496172688
1528174592
1560176496
1592178400
1624180304
2057251280
2089253184
2121255576
2153257896
2185265808
2217267776
2249269744
2281271712
2313273680
2345275648
2377277616
2409279584
2441283392
2473285360
2505287328
2537289296
2569291264
3202896968
3234898936
3266900904
3298902872
3330904840
3362906808
3394908776
3426910744
3458912712
3490914680
3522916648
3554918616
3586920584
3618922552
3650924520
3682926488
3714944752
3746946720
3778948688
3810950656
3842952624
3874954592
3906956560
3938958528
3970960496
4905368200
4937370168
4969372136
5001374104
5033376072
5065378040
5097380008
5129415296
5161417264
5193419232
5225421200
5257423168
5289425136
5321428008
5353429976
5385431944
5417433912
5449435880
5481437848
5513439816
5545441784
5577443752
5609445720
5641447688
5673449656
4138107232
4170116264
4202118232
4234120200
4266122168
4298124136
4330126104
4362128072
4394130040
4426132008
4458133976
4490135944
<--- Last few GCs --->
128 ms: Scavenge 58.9 (81.3) -> 58.8 (83.3) MB, 18.9 / 0 ms [allocation failure].
3890 ms: Mark-sweep 1183.3 (1216.5) -> 958.6 (1006.3) MB, 104.8 / 0 ms (+ 454.0 ms in 301 steps since start of marking, biggest step 231.5 ms) [GC interrupt] [GC in old space requested].
18501 ms: Mark-sweep 5440.5 (5527.2) -> 3945.7 (4033.6) MB, 349.8 / 0 ms (+ 1988.4 ms in 537 steps since start of marking, biggest step 15.1 ms) [GC interrupt] [GC in old space requested].
<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 0x1fac0e5b4629 <JS Object>
2: _onTimeout(aka alloc) [/home/dmartin/Downloads/test.js:~3] [pc=0x28c1bd56e9e0] (this=0xa0c8a00c9c1 <JS Object>)
3: listOnTimeout [timers.js:92] [pc=0x28c1bd56dce1] (this=0x3c6308eb3651 <a Timer with map 0x3ae79dd229d1>)
==== Details ================================================
[2]: _onTimeout(aka alloc) [/home/dmartin/Downloads/test.js:~3] [pc=0x28c1bd56e9e0] (this=0xa0c8a00c9c...
FATAL ERROR: invalid array length Allocation failed - process out of memory
^CAborted (core dumped)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment