tomvlk / node-split-file

:seedling: NodeJS Module to split and merge files for several purposes like transporting over unstable networks.
MIT License
41 stars 13 forks source link

Out of memory when splitting file that is bigger than 500mb #15

Closed aleksandar-b closed 7 years ago

aleksandar-b commented 7 years ago

Node gives me this error FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

I split large file, then sequently upload them one by one.

tomvlk commented 7 years ago

Due to the default memory limit in NodeJS it's not possible to split large files that couldn't use the benefits of streamed reading/writing. You could try to split it in more parts, maybe this works? What command is executed exactly and what sort of file?

aleksandar-b commented 7 years ago

tnx, I resolved it. I think it was issue with bluebird, not with this module. But I have another serious issue.