#363·natural

JavaScript heap out of memory when using trainParallel()

Author: s-aCreated Jul 15, 2017Updated Aug 2, 2025
LabelsBug
bash
<--- Last few GCs --->

  131590 ms: Mark-sweep 1367.5 (1434.8) -> 1369.1 (1434.8) MB, 431.2 / 0.0 ms [allocation failure] [GC in old space requested].
  132014 ms: Mark-sweep 1369.1 (1434.8) -> 1370.7 (1434.8) MB, 423.4 / 0.0 ms [allocation failure] [GC in old space requested].
  132433 ms: Mark-sweep 1370.7 (1434.8) -> 1372.6 (1403.8) MB, 419.1 / 0.0 ms [last resort gc].
  132850 ms: Mark-sweep 1372.6 (1403.8) -> 1374.5 (1403.8) MB, 416.9 / 0.0 ms [last resort gc].


<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0000000F7C83FC59 <JS Object>
    1: docsToFeatures [0000000F7C804241 <undefined>:~1] [pc=000003D9A5171505] (this=00000224E6CCA889 <JS Global Object>,docs=0000024C3C3F9691 <JS Array[58695]>)
    2: /* anonymous */ [0000000F7C804241 <undefined>:1] [pc=000003D9A516C0CC] (this=00000224E6CCA889 <JS Global Object>)

==== Details ================================================

[1]: docsToFeatures [0000000F7C804241 <undefined>...


#
# Fatal error in CALL_AND_RETRY_LAST
# Allocation failed - JavaScript heap out of memory
#