RangeError: Array buffer allocation failed



  • 2018-09-23 09:41:00 shard2: RangeError: Array buffer allocation failed
        at new ArrayBuffer ()
        at typedArrayConstructByLength ()
        at new Float64Array (native)
        at new Heap (:33556:27)
        at Object.findRoute (:33353:13)
    

    I get a lot of Array buffer allocation failures. My code ran until the end of the tick where this happened and used about 245 CPU. The heap info that tick indicates there should be plenty of spare heap capacity.

    {
    "total_heap_size":285044736,
    "total_heap_size_executable":4194304,
    "total_physical_size":281331016,
    "total_available_size":169390136,
    "used_heap_size":201183248,
    "heap_size_limit":381681664,
    "malloced_memory":8192,
    "peak_malloced_memory":7581360,
    "does_zap_garbage":0,
    "externally_allocated_size":41463394
    }