Heap out of memory with 227MB data stream.
rayjennings3rd opened this issue · 3 comments
rayjennings3rd commented
Error with 227MB data stream:
let hash = md5(data.Body);
FATAL ERROR: invalid table size Allocation failed - JavaScript heap out of memory
Tzinov15 commented
Hit this same issue with 155 MB stream
FATAL ERROR: invalid array length Allocation failed - JavaScript heap out of memory
Deleted user commented
I also encountered the same problem, and fixed it by using crypto
from node. I think this lib is only useful when running in browser.
const crypto = require("crypto");
let md5 = crypto.createHash('md5').update(data).digest("hex");